JayBeams  0.1
Another project to have fun coding.
Public Member Functions | Public Attributes | List of all members
jb::offline_feed_statistics::config Class Reference

Configure an offline_feed_statistics object. More...

#include <offline_feed_statistics.hpp>

Inheritance diagram for jb::offline_feed_statistics::config:
jb::config_object

Public Member Functions

 config ()
 
 config_object_constructors (config)
 
void validate () const override
 Validate the configuration. More...
 
- Public Member Functions inherited from jb::config_object
 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_objectoperator= (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_messages_per_second
 
jb::config_attribute< config, int > max_messages_per_millisecond
 
jb::config_attribute< config, int > max_messages_per_microsecond
 
jb::config_attribute< config, std::int64_t > max_interarrival_time_nanoseconds
 
jb::config_attribute< config, int > max_processing_latency_nanoseconds
 
jb::config_attribute< config, int > reporting_interval_seconds
 

Additional Inherited Members

- Static Protected Member Functions inherited from jb::config_object
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...
 

Detailed Description

Configure an offline_feed_statistics object.

Definition at line 160 of file offline_feed_statistics.hpp.

Constructor & Destructor Documentation

◆ config()

jb::offline_feed_statistics::config::config ( )

Definition at line 311 of file offline_feed_statistics.cpp.

Member Function Documentation

◆ config_object_constructors()

jb::offline_feed_statistics::config::config_object_constructors ( config  )

◆ validate()

void jb::offline_feed_statistics::config::validate ( ) const
overridevirtual

Member Data Documentation

◆ max_interarrival_time_nanoseconds

jb::config_attribute<config, std::int64_t> jb::offline_feed_statistics::config::max_interarrival_time_nanoseconds

Definition at line 171 of file offline_feed_statistics.hpp.

Referenced by validate().

◆ max_messages_per_microsecond

jb::config_attribute<config, int> jb::offline_feed_statistics::config::max_messages_per_microsecond

Definition at line 170 of file offline_feed_statistics.hpp.

Referenced by validate().

◆ max_messages_per_millisecond

jb::config_attribute<config, int> jb::offline_feed_statistics::config::max_messages_per_millisecond

Definition at line 169 of file offline_feed_statistics.hpp.

Referenced by validate().

◆ max_messages_per_second

jb::config_attribute<config, int> jb::offline_feed_statistics::config::max_messages_per_second

Definition at line 168 of file offline_feed_statistics.hpp.

Referenced by validate().

◆ max_processing_latency_nanoseconds

jb::config_attribute<config, int> jb::offline_feed_statistics::config::max_processing_latency_nanoseconds

Definition at line 172 of file offline_feed_statistics.hpp.

Referenced by validate().

◆ reporting_interval_seconds

jb::config_attribute<config, int> jb::offline_feed_statistics::config::reporting_interval_seconds

Definition at line 173 of file offline_feed_statistics.hpp.

Referenced by main(), and validate().


The documentation for this class was generated from the following files: