JayBeams
0.1
Another project to have fun coding.
|
Configuration object for the jb::itch5::mold_udp_pacer class. More...
#include <mold_udp_pacer_config.hpp>
Public Member Functions | |
mold_udp_pacer_config () | |
config_object_constructors (mold_udp_pacer_config) | |
void | validate () const override |
Validate the settings. 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< mold_udp_pacer_config, int > | maximum_delay_microseconds |
jb::config_attribute< mold_udp_pacer_config, int > | maximum_transmission_unit |
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... | |
Configuration object for the jb::itch5::mold_udp_pacer class.
Definition at line 12 of file mold_udp_pacer_config.hpp.
jb::itch5::mold_udp_pacer_config::mold_udp_pacer_config | ( | ) |
Definition at line 49 of file mold_udp_pacer_config.cpp.
jb::itch5::mold_udp_pacer_config::config_object_constructors | ( | mold_udp_pacer_config | ) |
|
overridevirtual |
Validate the settings.
jb::usage | if a problem is detected. |
Reimplemented from jb::config_object.
Definition at line 66 of file mold_udp_pacer_config.cpp.
References jb::itch5::mold_udp_protocol::header_size, maximum_delay_microseconds, and maximum_transmission_unit.
jb::config_attribute<mold_udp_pacer_config, int> jb::itch5::mold_udp_pacer_config::maximum_delay_microseconds |
Definition at line 19 of file mold_udp_pacer_config.hpp.
Referenced by validate().
jb::config_attribute<mold_udp_pacer_config, int> jb::itch5::mold_udp_pacer_config::maximum_transmission_unit |
Definition at line 20 of file mold_udp_pacer_config.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), and validate().