24 #ifndef SKA_CHEETAH_EXPORTERS_DATAEXPORTCONFIG_H 25 #define SKA_CHEETAH_EXPORTERS_DATAEXPORTCONFIG_H 28 #include "cheetah/utils/Config.h" 29 #include "cheetah/exporters/DataExportStreamConfig.h" 30 #include "panda/ChannelsConfig.h" 31 #include "panda/DataSwitchConfig.h" 81 void activate(panda::ChannelId
const&
channel);
97 std::vector<DataExportStreamConfig>
const&
exporters()
const;
102 void channel(panda::ChannelInfo
const&);
107 panda::ProcessingEngineConfig
const&
engine_config(panda::ChannelId
const& channel_id)
const;
112 void set_engine_config(panda::ChannelId
const& channel_id, panda::ProcessingEngineConfig
const& config);
120 void parse_property_tree(boost::property_tree::ptree
const& pt, boost::program_options::variables_map& vm)
override;
122 void add_sink(std::string
const& tag, std::function<panda::ConfigModule*()>
const& cm);
123 void add_sink(panda::ConfigModule& cm);
128 panda::Engine&
engine(panda::ChannelId
const&);
131 void add_options(OptionsDescriptionEasyInit& add_options)
override;
134 class SinkConfigs:
public panda::ConfigModule
138 void add_options(OptionsDescriptionEasyInit& add_options)
override;
142 mutable panda::DataSwitchConfig _switch_config;
143 panda::ChannelsConfig _channel_config;
144 SinkConfigs _sink_configs;
145 mutable std::vector<DataExportStreamConfig> _sinks;
146 mutable bool _exporters_init;
154 #endif // SKA_CHEETAH_EXPORTERS_DATAEXPORTCONFIG_H Configuration Object for DataExport module.
void channel(panda::ChannelInfo const &)
explicity add a channel configuration
std::vector< DataExportStreamConfig > const & exporters() const
return a list of configured export streamer configurations
void activate_streams(std::vector< std::string > const &streams)
mark the provided streams as active
Base class for module configuration.
panda::Engine & engine(panda::ChannelId const &)
return the engine allocated to the specified channel
Defines the mapping of a sinks configuration block with the sink type, and the channel to associate i...
void set_engine_config(panda::ChannelId const &channel_id, panda::ProcessingEngineConfig const &config)
set the engine confugration for a specified channel
void add_exporter(DataExportStreamConfig)
set an export streamer configurations
Some limits and constants for FLDO.
panda::ProcessingEngineConfig const & engine_config(panda::ChannelId const &channel_id) const
return the processing engine configuration associated with the specified channel
panda::DataSwitchConfig & switch_config() const
return the configuration suitable for sending to a panda::DataSwitch
void number_of_threads(unsigned const &number_of_threads)
set the number of dedicated threads to service exporters export (default 0)