24 #ifndef SKA_CHEETAH_GENERATOR_GENERATORAPPCONFIG_H 25 #define SKA_CHEETAH_GENERATOR_GENERATORAPPCONFIG_H 27 #include "panda/BasicAppConfig.h" 28 #include "cheetah/generators/Config.h" 29 #include "cheetah/sigproc/WriterConfig.h" 30 #include "cheetah/data/Units.h" 36 namespace generators {
48 typedef boost::units::quantity<data::MegaHertz, double> FrequencyType;
49 typedef boost::units::quantity<boost::units::si::time, double> IntervalType;
112 std::string version()
const override;
115 void add_options(OptionsDescriptionEasyInit& add_options)
override;
120 std::vector<std::string> _generator_keys;
121 std::size_t _number_of_chunks;
122 std::size_t _number_of_channels;
123 std::size_t _number_of_time_samples;
124 std::vector<std::string> _generator_selected;
125 FrequencyType _frequency;
126 FrequencyType _channel_width;
127 IntervalType _sample_interval;
135 #endif // SKA_CHEETAH_GENERATOR_GENERATORAPPCONFIG_H std::vector< std::string > const & generator_list() const
list the known generators
void set_generator_list(std::vector< std::string > const &generator_names)
set the known generators
ska::cheetah::generators::Config & generator_config()
return the generator configuration object
Generator Configuration file.
FrequencyType channel_width() const
return the channel width (homgenous cwidth channels)
Configuration options for a SigProcWriter.
std::vector< std::string > const & data_generator() const
return the chosen data model
Some limits and constants for FLDO.
sigproc::WriterConfig const & sigproc_config() const
return the configuration object for directing sigproc writer
Top level configuration for the generator app.
std::size_t number_of_time_samples() const
return the number of time smaples per data chunk
IntervalType sample_interval() const
sample interval (in seconds)
FrequencyType start_frequency() const
return the start frequency
std::size_t number_of_chunks() const
return the number of data chunks to produce for the data file
std::size_t number_of_channels() const
return the number of channels for each data chunk