|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <DataReaderConf.hpp>
Public Member Functions | |
| virtual void | print (unsigned int offset, bool print_header, std::ostream &s) const |
| Print details of the DataReaderConf object. | |
| virtual std::vector< const dunedaq::conffwk::DalObject * > | get (const std::string &name, bool upcast_unregistered=true) const |
| Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers. | |
| const std::string & | get_template_for () const |
| Get "template_for" attribute value. OKS class of the DataReaderModule that this config is a template for. | |
| void | set_template_for (const std::string &value) |
| Set "template_for" attribute value. OKS class of the DataReaderModule that this config is a template for. | |
| bool | get_emulation_mode () const |
| Get "emulation_mode" attribute value. | |
| void | set_emulation_mode (bool value) |
| Set "emulation_mode" attribute value. | |
| const dunedaq::appmodel::StreamEmulationParameters * | get_emulation_conf () const |
| Get "emulation_conf" relationship value. Parameters for emulating the stream. | |
| void | set_emulation_conf (const dunedaq::appmodel::StreamEmulationParameters *value) |
| Set "emulation_conf" relationship value. Parameters for emulating the stream. | |
| virtual void | print (unsigned int offset, bool print_header, std::ostream &s) const |
| Print details of the DataReaderConf object. | |
| virtual std::vector< const dunedaq::conffwk::DalObject * > | get (const std::string &name, bool upcast_unregistered=true) const |
| Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers. | |
| const std::string & | get_template_for () const |
| Get "template_for" attribute value. OKS class of the DataReaderModule that this config is a template for. | |
| void | set_template_for (const std::string &value) |
| Set "template_for" attribute value. OKS class of the DataReaderModule that this config is a template for. | |
| bool | get_emulation_mode () const |
| Get "emulation_mode" attribute value. | |
| void | set_emulation_mode (bool value) |
| Set "emulation_mode" attribute value. | |
| const dunedaq::appmodel::StreamEmulationParameters * | get_emulation_conf () const |
| Get "emulation_conf" relationship value. Parameters for emulating the stream. | |
| void | set_emulation_conf (const dunedaq::appmodel::StreamEmulationParameters *value) |
| Set "emulation_conf" relationship value. Parameters for emulating the stream. | |
Public Member Functions inherited from dunedaq::conffwk::DalObject | |
| const std::string & | UID () const noexcept |
| const std::string & | class_name () const noexcept |
| bool | castable (const std::string &target) const noexcept |
| bool | castable (const std::string *target) const noexcept |
| template<class TARGET > | |
| const TARGET * | cast () const noexcept |
| Casts object to different class. | |
| std::string | full_name () const noexcept |
| const ConfigObject & | config_object () const |
| DalRegistry & | registry () const noexcept |
| Configuration & | configuration () const noexcept |
| void | unread () |
| void | set (const ConfigObject &o) noexcept |
| void | move (const std::string &at) |
| void | rename (const std::string &new_id) |
| void | p_hdr (std::ostream &s, unsigned int indent, const std::string &cl, const char *nm=nullptr) const |
| print object headers | |
| std::ostream & | print_object (std::ostream &s) const |
| print object details | |
| void | throw_init_ex (dunedaq::conffwk::Exception &ex) |
| throw object initialisation exception (i.e. | |
Static Public Member Functions | |
| static const std::string & | __get_template_for_str () noexcept |
| static const std::string & | __get_emulation_mode_str () noexcept |
| static const std::string & | __get_emulation_conf_str () noexcept |
| static const std::string & | __get_template_for_str () noexcept |
| static const std::string & | __get_emulation_mode_str () noexcept |
| static const std::string & | __get_emulation_conf_str () noexcept |
Static Public Member Functions inherited from dunedaq::conffwk::DalObject | |
| static void | p_null (std::ostream &s) |
| print "(null)" | |
| static void | p_rm (std::ostream &s) |
| print "(deleted object)" | |
| static void | p_error (std::ostream &s, dunedaq::conffwk::Exception &ex) |
| print error text | |
| static void | throw_get_ex (const std::string &what, const std::string &class_name, const DalObject *obj) |
| throw exception in generated get method (i.e. | |
| static bool | is_null (const DalObject *ref) noexcept |
| check a pointer on DAL object is null | |
Static Public Attributes | |
| static const std::string & | s_class_name |
| static const std::string | s_template_for = "template_for" |
| static const std::string | s_emulation_mode = "emulation_mode" |
| static const std::string | s_emulation_conf = "emulation_conf" |
Protected Member Functions | |
| DataReaderConf (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
| virtual | ~DataReaderConf () noexcept |
| virtual void | init (bool init_children) |
| bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
| DataReaderConf (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
| virtual | ~DataReaderConf () noexcept |
| virtual void | init (bool init_children) |
| bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
Protected Member Functions inherited from dunedaq::conffwk::DalObject | |
| DalObject (DalRegistry &db, const ConfigObject &o) noexcept | |
| virtual | ~DalObject () |
| void | clear () noexcept |
| void | check () const |
| bool | is_deleted () const |
| void | increment_created () noexcept |
| void | increment_read () noexcept |
| void | check_init () const |
| Check and initialize object if necessary. | |
| template<typename T > | |
| void | _set_object (const std::string &name, const T *value) |
| Helper method for generated set single-value relationship methods. | |
| template<typename T > | |
| void | _set_objects (const std::string &name, const std::vector< const T * > &value) |
| Helper method for generated set multi-value relationship methods. | |
| bool | get_rel_objects (const std::string &name, bool upcast_unregistered, std::vector< const DalObject * > &objs) const |
| Read relationship values as DAL objects using DAL factory. | |
| bool | get_algo_objects (const std::string &name, std::vector< const DalObject * > &objs) const |
| Run algorithm and return result as DAL objects using DAL factory. | |
Private Attributes | |
| std::string | m_template_for |
| bool | m_emulation_mode |
| const dunedaq::appmodel::StreamEmulationParameters * | m_emulation_conf |
Friends | |
| class | conffwk::Configuration |
| class | conffwk::DalObject |
| class | conffwk::DalFactory |
| class | conffwk::DalRegistry |
Additional Inherited Members | |
Protected Attributes inherited from dunedaq::conffwk::DalObject | |
| std::mutex | m_mutex |
| Used to protect changes of DAL object. | |
| bool | p_was_read |
| is true, if the object was read | |
| DalRegistry & | p_registry |
| Configuration object. | |
| ConfigObject | p_obj |
| Config object used by given template object. | |
| std::string | p_UID |
| Is used for template objects (see dqm_conffwk) | |
Definition at line 29 of file DataReaderConf.hpp.
|
protectednoexcept |
Definition at line 31 of file DataReaderConf.cpp.
|
protectedvirtualnoexcept |
Definition at line 83 of file DataReaderConf.cpp.
|
protectednoexcept |
|
protectedvirtualnoexcept |
|
inlinestaticnoexcept |
Definition at line 164 of file DataReaderConf.hpp.
|
inlinestaticnoexcept |
Definition at line 164 of file DataReaderConf.hpp.
|
inlinestaticnoexcept |
Definition at line 93 of file DataReaderConf.hpp.
|
inlinestaticnoexcept |
Definition at line 93 of file DataReaderConf.hpp.
|
inlinestaticnoexcept |
Definition at line 92 of file DataReaderConf.hpp.
|
inlinestaticnoexcept |
Definition at line 92 of file DataReaderConf.hpp.
|
virtual |
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers.
Parameters are:
| name | name of the relationship or algorithm |
| std::exception | if there is no relationship or algorithm with such name in this and base classes |
Implements dunedaq::conffwk::DalObject.
Reimplemented in dunedaq::appmodel::CRTBernReaderConf, dunedaq::appmodel::CRTBernReaderConf, dunedaq::appmodel::CRTGrenobleReaderConf, dunedaq::appmodel::CRTGrenobleReaderConf, dunedaq::appmodel::CRTReaderConf, dunedaq::appmodel::CRTReaderConf, dunedaq::appmodel::DPDKReaderConf, dunedaq::appmodel::DPDKReaderConf, dunedaq::appmodel::FelixReaderConf, dunedaq::appmodel::FelixReaderConf, dunedaq::appmodel::HSI2TCTranslatorConf, dunedaq::appmodel::HSI2TCTranslatorConf, dunedaq::appmodel::SocketReaderConf, and dunedaq::appmodel::SocketReaderConf.
Definition at line 87 of file DataReaderConf.cpp.
|
virtual |
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers.
Parameters are:
| name | name of the relationship or algorithm |
| std::exception | if there is no relationship or algorithm with such name in this and base classes |
Implements dunedaq::conffwk::DalObject.
Reimplemented in dunedaq::appmodel::CRTBernReaderConf, dunedaq::appmodel::CRTBernReaderConf, dunedaq::appmodel::CRTGrenobleReaderConf, dunedaq::appmodel::CRTGrenobleReaderConf, dunedaq::appmodel::CRTReaderConf, dunedaq::appmodel::CRTReaderConf, dunedaq::appmodel::DPDKReaderConf, dunedaq::appmodel::DPDKReaderConf, dunedaq::appmodel::FelixReaderConf, dunedaq::appmodel::FelixReaderConf, dunedaq::appmodel::HSI2TCTranslatorConf, dunedaq::appmodel::HSI2TCTranslatorConf, dunedaq::appmodel::SocketReaderConf, and dunedaq::appmodel::SocketReaderConf.
|
protected |
Definition at line 97 of file DataReaderConf.cpp.
|
protected |
|
inline |
Get "emulation_conf" relationship value. Parameters for emulating the stream.
Definition at line 175 of file DataReaderConf.hpp.
|
inline |
Get "emulation_conf" relationship value. Parameters for emulating the stream.
Definition at line 175 of file DataReaderConf.hpp.
|
inline |
Get "emulation_mode" attribute value.
Definition at line 136 of file DataReaderConf.hpp.
|
inline |
Get "emulation_mode" attribute value.
Definition at line 136 of file DataReaderConf.hpp.
|
inline |
Get "template_for" attribute value. OKS class of the DataReaderModule that this config is a template for.
Definition at line 104 of file DataReaderConf.hpp.
|
inline |
Get "template_for" attribute value. OKS class of the DataReaderModule that this config is a template for.
Definition at line 104 of file DataReaderConf.hpp.
|
protectedvirtual |
Initialize object (method generated by genconffwk)
| init_children | if true, initialize referenced objects |
Implements dunedaq::conffwk::DalObject.
Reimplemented in dunedaq::appmodel::CRTBernReaderConf, dunedaq::appmodel::CRTBernReaderConf, dunedaq::appmodel::CRTGrenobleReaderConf, dunedaq::appmodel::CRTGrenobleReaderConf, dunedaq::appmodel::CRTReaderConf, dunedaq::appmodel::CRTReaderConf, dunedaq::appmodel::DPDKReaderConf, dunedaq::appmodel::DPDKReaderConf, dunedaq::appmodel::FelixReaderConf, dunedaq::appmodel::FelixReaderConf, dunedaq::appmodel::HSI2TCTranslatorConf, dunedaq::appmodel::HSI2TCTranslatorConf, dunedaq::appmodel::SocketReaderConf, and dunedaq::appmodel::SocketReaderConf.
Definition at line 67 of file DataReaderConf.cpp.
|
protectedvirtual |
Initialize object (method generated by genconffwk)
| init_children | if true, initialize referenced objects |
Implements dunedaq::conffwk::DalObject.
Reimplemented in dunedaq::appmodel::CRTBernReaderConf, dunedaq::appmodel::CRTBernReaderConf, dunedaq::appmodel::CRTGrenobleReaderConf, dunedaq::appmodel::CRTGrenobleReaderConf, dunedaq::appmodel::CRTReaderConf, dunedaq::appmodel::CRTReaderConf, dunedaq::appmodel::DPDKReaderConf, dunedaq::appmodel::DPDKReaderConf, dunedaq::appmodel::FelixReaderConf, dunedaq::appmodel::FelixReaderConf, dunedaq::appmodel::HSI2TCTranslatorConf, dunedaq::appmodel::HSI2TCTranslatorConf, dunedaq::appmodel::SocketReaderConf, and dunedaq::appmodel::SocketReaderConf.
|
virtual |
Print details of the DataReaderConf object.
Parameters are:
| offset | number of spaces to shift object right (useful to print nested objects) |
| print_header | if false, do not print object header (to print attributes of base classes) |
| s | output stream |
Implements dunedaq::conffwk::DalObject.
Reimplemented in dunedaq::appmodel::CRTBernReaderConf, dunedaq::appmodel::CRTBernReaderConf, dunedaq::appmodel::CRTGrenobleReaderConf, dunedaq::appmodel::CRTGrenobleReaderConf, dunedaq::appmodel::CRTReaderConf, dunedaq::appmodel::CRTReaderConf, dunedaq::appmodel::DPDKReaderConf, dunedaq::appmodel::DPDKReaderConf, dunedaq::appmodel::FelixReaderConf, dunedaq::appmodel::FelixReaderConf, dunedaq::appmodel::HSI2TCTranslatorConf, dunedaq::appmodel::HSI2TCTranslatorConf, dunedaq::appmodel::SocketReaderConf, and dunedaq::appmodel::SocketReaderConf.
Definition at line 40 of file DataReaderConf.cpp.
|
virtual |
Print details of the DataReaderConf object.
Parameters are:
| offset | number of spaces to shift object right (useful to print nested objects) |
| print_header | if false, do not print object header (to print attributes of base classes) |
| s | output stream |
Implements dunedaq::conffwk::DalObject.
Reimplemented in dunedaq::appmodel::CRTBernReaderConf, dunedaq::appmodel::CRTBernReaderConf, dunedaq::appmodel::CRTGrenobleReaderConf, dunedaq::appmodel::CRTGrenobleReaderConf, dunedaq::appmodel::CRTReaderConf, dunedaq::appmodel::CRTReaderConf, dunedaq::appmodel::DPDKReaderConf, dunedaq::appmodel::DPDKReaderConf, dunedaq::appmodel::FelixReaderConf, dunedaq::appmodel::FelixReaderConf, dunedaq::appmodel::HSI2TCTranslatorConf, dunedaq::appmodel::HSI2TCTranslatorConf, dunedaq::appmodel::SocketReaderConf, and dunedaq::appmodel::SocketReaderConf.
| void dunedaq::appmodel::DataReaderConf::set_emulation_conf | ( | const dunedaq::appmodel::StreamEmulationParameters * | value | ) |
Set "emulation_conf" relationship value. Parameters for emulating the stream.
| value | new relationship value |
Definition at line 116 of file DataReaderConf.cpp.
| void dunedaq::appmodel::DataReaderConf::set_emulation_conf | ( | const dunedaq::appmodel::StreamEmulationParameters * | value | ) |
Set "emulation_conf" relationship value. Parameters for emulating the stream.
| value | new relationship value |
|
inline |
Set "emulation_mode" attribute value.
| value | new attribute value |
Definition at line 151 of file DataReaderConf.hpp.
|
inline |
Set "emulation_mode" attribute value.
| value | new attribute value |
Definition at line 151 of file DataReaderConf.hpp.
|
inline |
Set "template_for" attribute value. OKS class of the DataReaderModule that this config is a template for.
| value | new attribute value |
Definition at line 120 of file DataReaderConf.hpp.
|
inline |
Set "template_for" attribute value. OKS class of the DataReaderModule that this config is a template for.
| value | new attribute value |
Definition at line 120 of file DataReaderConf.hpp.
|
friend |
Definition at line 31 of file DataReaderConf.hpp.
|
friend |
Definition at line 33 of file DataReaderConf.hpp.
|
friend |
Definition at line 32 of file DataReaderConf.hpp.
|
friend |
Definition at line 34 of file DataReaderConf.hpp.
|
private |
Definition at line 82 of file DataReaderConf.hpp.
|
private |
Definition at line 81 of file DataReaderConf.hpp.
|
private |
Definition at line 80 of file DataReaderConf.hpp.
|
static |
The name of the configuration class.
Definition at line 46 of file DataReaderConf.hpp.
|
inlinestatic |
Definition at line 162 of file DataReaderConf.hpp.
|
inlinestatic |
Definition at line 90 of file DataReaderConf.hpp.
|
inlinestatic |
Definition at line 89 of file DataReaderConf.hpp.