Cheetah - SKA - PSS - Prototype Time Domain Search Pipeline
|
This class initialises a suitable panda::DataSwitch according to the exporters::DataExportConfiguration and the provided factory methods. More...
#include <cheetah/exporters/DataExport.h>
Public Member Functions | |
DataExport (exporters::DataExportConfig const &) | |
std::set< ExporterType > const & | available () const |
return the exporter types available in this class | |
template<typename DataType > | |
TestProbe< DataType > & | activate_test_probe (panda::ChannelId const &) |
activates a TestProbe object for monitoring the streamed data of DataType to a specific | |
Protected Member Functions | |
template<typename DataType , typename FactoryType > | |
void | set_factory (ExporterType const &type_id, FactoryType factory) |
void | init () |
initialise the output handlers using the factories supplied by set_factory(). Only call after all factories have been set More... | |
Protected Attributes | |
std::tuple< ExportInitialiser< DataExport< DataTypes... >, DataTypes >... > | _initialisers |
DataExportConfig const & | _config |
std::set< ExporterType > | _types |
This class initialises a suitable panda::DataSwitch according to the exporters::DataExportConfiguration and the provided factory methods.
This is a base class, and is not intended for direct use. Inherit from this class and call set_factory() and init() in your constructor. set_factory will define the types of exporters that can be activated, and the init() will produce concrete instances of these types according to the configuration provided. add_factory will allow you to define a configuration module generator to associate with the type.
Definition at line 55 of file DataExport.h.
|
protected |
initialise the output handlers using the factories supplied by set_factory(). Only call after all factories have been set
only call once, in the constructor of the derived class
Definition at line 119 of file DataExport.cpp.