JayBeams
0.1
Another project to have fun coding.
|
Configure an array_based_order_book config object. More...
#include <array_based_order_book.hpp>
Public Member Functions | |
config () | |
config_object_constructors (config) | |
void | validate () const override |
Validate the configuration. More... | |
![]() | |
config_object () | |
Default constructor. More... | |
config_object (config_object const &rhs) | |
Copy constructor. More... | |
config_object (config_object &&rhs) | |
Move constructor. More... | |
virtual | ~config_object () |
Destructor. More... | |
config_object & | operator= (config_object rhs) |
Copy & swap assignment. More... | |
void | swap (config_object &rhs) |
Derived classes should implement member by member swap. More... | |
void | load_overrides (int &argc, char *argv[], std::string const &filename, char const *environment_variable_name) |
Read the configuration file and load the overrides defined therein. More... | |
void | load_overrides (int &argc, char *argv[], std::string const &filename) |
Read the configuration file and load the overrides defined therein. More... | |
void | load_overrides (int &argc, char *argv[], std::istream &is) |
Read the configuration file and load the overrides defined therein. More... | |
void | process_cmdline (int &argc, char *argv[]) |
Process the command line. More... | |
std::ostream & | to_stream (std::ostream &os) const |
Print out the settings. More... | |
Public Attributes | |
jb::config_attribute< config, int > | max_size |
Additional Inherited Members | |
![]() | |
static attribute_descriptor | desc (std::string const &name) |
Convenience function to create attribute descriptors with less typing. More... | |
static attribute_descriptor | desc (std::string const &name, std::string const &class_name) |
Convenience function to create attribute descriptors with less typing. More... | |
Configure an array_based_order_book config object.
Definition at line 96 of file array_based_order_book.hpp.
jb::itch5::array_based_order_book::config::config | ( | ) |
Definition at line 16 of file array_based_order_book.cpp.
jb::itch5::array_based_order_book::config::config_object_constructors | ( | config | ) |
|
overridevirtual |
Validate the configuration.
Reimplemented from jb::config_object.
Definition at line 25 of file array_based_order_book.cpp.
References max_size.
jb::config_attribute<config, int> jb::itch5::array_based_order_book::config::max_size |
Definition at line 104 of file array_based_order_book.hpp.
Referenced by validate().