24 #include "cheetah/emulator/Config.h" 25 #include "panda/ConfigFile.h" 33 : cheetah::utils::Config(
"emulator")
34 , _endpoint_config(
"client")
36 _endpoint_config.address(ska::panda::IpAddress(34345,
"127.0.0.1"));
37 add(_generators_config);
39 add(_endpoint_config);
47 panda::Engine& Config::engine()
const 49 return _server_config.engine();
52 void Config::add_options(OptionsDescriptionEasyInit& add_options)
55 (
"channels", boost::program_options::value<std::size_t>(&_number_of_channels)->default_value(7776),
"the number of channels to generate")
56 (
"generator", boost::program_options::value<std::string>(&_generator),
"select the data generator to use in the emulation");
59 Config::EndPointType Config::fixed_end_point()
const 61 return _endpoint_config.address().end_point<EndPointType>();;
64 void Config::fixed_address(panda::IpAddress
const& address)
66 _endpoint_config.address(address);
71 return _generators_config;
76 return _ska_low_config;
79 panda::ServerConfig
const& Config::server_config()
const 81 return _server_config;
84 std::size_t Config::number_of_channels()
const 86 return _number_of_channels;
89 void Config::number_of_channels(std::size_t n)
91 _number_of_channels = n;
94 std::string
const& Config::generator()
const Generator Configuration file.
Some limits and constants for FLDO.
Configuration for the packet generator to the time seperation of the packets.