|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <DaphneConf.hpp>
Public Member Functions | |
| virtual void | print (unsigned int offset, bool print_header, std::ostream &s) const |
| Print details of the DaphneConf 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. | |
| uint16_t | get_timeout_ms () const |
| Get "timeout_ms" attribute value. timeout used for the board operations. | |
| void | set_timeout_ms (uint16_t value) |
| Set "timeout_ms" attribute value. timeout used for the board operations. | |
| bool | get_time_reset () const |
| Get "time_reset" attribute value. If True, it performs the time reset at configuration. If False, that is skipped. | |
| void | set_time_reset (bool value) |
| Set "time_reset" attribute value. If True, it performs the time reset at configuration. If False, that is skipped. | |
| const dunedaq::appmodel::DaphneV2BoardConf * | get_default_v2_settings () const |
| Get "default_v2_settings" relationship value. Value to be used during scrap. | |
| void | set_default_v2_settings (const dunedaq::appmodel::DaphneV2BoardConf *value) |
| Set "default_v2_settings" relationship value. Value to be used during scrap. | |
| const std::vector< const dunedaq::appmodel::DaphneMapEntry * > & | get_boards () const |
| Get "boards" relationship value. | |
| void | set_boards (const std::vector< const dunedaq::appmodel::DaphneMapEntry * > &value) |
| Set "boards" relationship value. | |
| const dunedaq::appmodel::DaphneV2BoardConf * | get_default_v3_settings () const |
| Get "default_v3_settings" relationship value. | |
| void | set_default_v3_settings (const dunedaq::appmodel::DaphneV2BoardConf *value) |
| Set "default_v3_settings" relationship value. | |
| std::chrono::milliseconds | get_timeout () const |
| virtual void | print (unsigned int offset, bool print_header, std::ostream &s) const |
| Print details of the DaphneConf 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. | |
| uint16_t | get_timeout_ms () const |
| Get "timeout_ms" attribute value. timeout used for the board operations. | |
| void | set_timeout_ms (uint16_t value) |
| Set "timeout_ms" attribute value. timeout used for the board operations. | |
| bool | get_time_reset () const |
| Get "time_reset" attribute value. If True, it performs the time reset at configuration. If False, that is skipped. | |
| void | set_time_reset (bool value) |
| Set "time_reset" attribute value. If True, it performs the time reset at configuration. If False, that is skipped. | |
| const dunedaq::appmodel::DaphneV2BoardConf * | get_default_v2_settings () const |
| Get "default_v2_settings" relationship value. Value to be used during scrap. | |
| void | set_default_v2_settings (const dunedaq::appmodel::DaphneV2BoardConf *value) |
| Set "default_v2_settings" relationship value. Value to be used during scrap. | |
| const std::vector< const dunedaq::appmodel::DaphneMapEntry * > & | get_boards () const |
| Get "boards" relationship value. | |
| void | set_boards (const std::vector< const dunedaq::appmodel::DaphneMapEntry * > &value) |
| Set "boards" relationship value. | |
| const dunedaq::appmodel::DaphneV2BoardConf * | get_default_v3_settings () const |
| Get "default_v3_settings" relationship value. | |
| void | set_default_v3_settings (const dunedaq::appmodel::DaphneV2BoardConf *value) |
| Set "default_v3_settings" relationship value. | |
| std::chrono::milliseconds | get_timeout () const |
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_timeout_ms_str () noexcept |
| static const std::string & | __get_time_reset_str () noexcept |
| static const std::string & | __get_default_v2_settings_str () noexcept |
| static const std::string & | __get_boards_str () noexcept |
| static const std::string & | __get_default_v3_settings_str () noexcept |
| static const std::string & | __get_timeout_ms_str () noexcept |
| static const std::string & | __get_time_reset_str () noexcept |
| static const std::string & | __get_default_v2_settings_str () noexcept |
| static const std::string & | __get_boards_str () noexcept |
| static const std::string & | __get_default_v3_settings_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_timeout_ms = "timeout_ms" |
| static const std::string | s_time_reset = "time_reset" |
| static const std::string | s_default_v2_settings = "default_v2_settings" |
| static const std::string | s_boards = "boards" |
| static const std::string | s_default_v3_settings = "default_v3_settings" |
Protected Member Functions | |
| DaphneConf (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
| virtual | ~DaphneConf () 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 |
| DaphneConf (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
| virtual | ~DaphneConf () 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 | |
| uint16_t | m_timeout_ms |
| bool | m_time_reset |
| const dunedaq::appmodel::DaphneV2BoardConf * | m_default_v2_settings |
| std::vector< const dunedaq::appmodel::DaphneMapEntry * > | m_boards |
| const dunedaq::appmodel::DaphneV2BoardConf * | m_default_v3_settings |
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) | |
Top entry for the configuraiton of a single daphne board
Definition at line 38 of file DaphneConf.hpp.
|
protectednoexcept |
Definition at line 32 of file DaphneConf.cpp.
|
protectedvirtualnoexcept |
Definition at line 89 of file DaphneConf.cpp.
|
protectednoexcept |
|
protectedvirtualnoexcept |
|
inlinestaticnoexcept |
Definition at line 180 of file DaphneConf.hpp.
|
inlinestaticnoexcept |
Definition at line 180 of file DaphneConf.hpp.
|
inlinestaticnoexcept |
Definition at line 179 of file DaphneConf.hpp.
|
inlinestaticnoexcept |
Definition at line 179 of file DaphneConf.hpp.
|
inlinestaticnoexcept |
Definition at line 181 of file DaphneConf.hpp.
|
inlinestaticnoexcept |
Definition at line 181 of file DaphneConf.hpp.
|
inlinestaticnoexcept |
Definition at line 104 of file DaphneConf.hpp.
|
inlinestaticnoexcept |
Definition at line 104 of file DaphneConf.hpp.
|
inlinestaticnoexcept |
Definition at line 103 of file DaphneConf.hpp.
|
inlinestaticnoexcept |
Definition at line 103 of file DaphneConf.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.
Definition at line 93 of file DaphneConf.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.
|
protected |
Definition at line 103 of file DaphneConf.cpp.
|
protected |
|
inline |
Get "boards" relationship value.
Definition at line 224 of file DaphneConf.hpp.
|
inline |
Get "boards" relationship value.
Definition at line 224 of file DaphneConf.hpp.
|
inline |
Get "default_v2_settings" relationship value. Value to be used during scrap.
Definition at line 192 of file DaphneConf.hpp.
|
inline |
Get "default_v2_settings" relationship value. Value to be used during scrap.
Definition at line 192 of file DaphneConf.hpp.
|
inline |
Get "default_v3_settings" relationship value.
Definition at line 249 of file DaphneConf.hpp.
|
inline |
Get "default_v3_settings" relationship value.
Definition at line 249 of file DaphneConf.hpp.
|
inline |
Get "time_reset" attribute value. If True, it performs the time reset at configuration. If False, that is skipped.
Definition at line 148 of file DaphneConf.hpp.
|
inline |
Get "time_reset" attribute value. If True, it performs the time reset at configuration. If False, that is skipped.
Definition at line 148 of file DaphneConf.hpp.
| std::chrono::milliseconds dunedaq::appmodel::DaphneConf::get_timeout | ( | ) | const |
get the interval casted in ms
Definition at line 143 of file DaphneConf.cpp.
| std::chrono::milliseconds dunedaq::appmodel::DaphneConf::get_timeout | ( | ) | const |
get the interval casted in ms
|
inline |
Get "timeout_ms" attribute value. timeout used for the board operations.
Definition at line 115 of file DaphneConf.hpp.
|
inline |
Get "timeout_ms" attribute value. timeout used for the board operations.
Definition at line 115 of file DaphneConf.hpp.
|
protectedvirtual |
Initialize object (method generated by genconffwk)
| init_children | if true, initialize referenced objects |
Implements dunedaq::conffwk::DalObject.
Definition at line 71 of file DaphneConf.cpp.
|
protectedvirtual |
Initialize object (method generated by genconffwk)
| init_children | if true, initialize referenced objects |
Implements dunedaq::conffwk::DalObject.
|
virtual |
Print details of the DaphneConf 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.
Definition at line 42 of file DaphneConf.cpp.
|
virtual |
Print details of the DaphneConf 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.
| void dunedaq::appmodel::DaphneConf::set_boards | ( | const std::vector< const dunedaq::appmodel::DaphneMapEntry * > & | value | ) |
Set "boards" relationship value.
| value | new relationship value |
Definition at line 127 of file DaphneConf.cpp.
| void dunedaq::appmodel::DaphneConf::set_boards | ( | const std::vector< const dunedaq::appmodel::DaphneMapEntry * > & | value | ) |
Set "boards" relationship value.
| value | new relationship value |
| void dunedaq::appmodel::DaphneConf::set_default_v2_settings | ( | const dunedaq::appmodel::DaphneV2BoardConf * | value | ) |
Set "default_v2_settings" relationship value. Value to be used during scrap.
| value | new relationship value |
Definition at line 122 of file DaphneConf.cpp.
| void dunedaq::appmodel::DaphneConf::set_default_v2_settings | ( | const dunedaq::appmodel::DaphneV2BoardConf * | value | ) |
Set "default_v2_settings" relationship value. Value to be used during scrap.
| value | new relationship value |
| void dunedaq::appmodel::DaphneConf::set_default_v3_settings | ( | const dunedaq::appmodel::DaphneV2BoardConf * | value | ) |
Set "default_v3_settings" relationship value.
| value | new relationship value |
Definition at line 132 of file DaphneConf.cpp.
| void dunedaq::appmodel::DaphneConf::set_default_v3_settings | ( | const dunedaq::appmodel::DaphneV2BoardConf * | value | ) |
Set "default_v3_settings" relationship value.
| value | new relationship value |
|
inline |
Set "time_reset" attribute value. If True, it performs the time reset at configuration. If False, that is skipped.
| value | new attribute value |
Definition at line 164 of file DaphneConf.hpp.
|
inline |
Set "time_reset" attribute value. If True, it performs the time reset at configuration. If False, that is skipped.
| value | new attribute value |
Definition at line 164 of file DaphneConf.hpp.
|
inline |
Set "timeout_ms" attribute value. timeout used for the board operations.
| value | new attribute value |
Definition at line 131 of file DaphneConf.hpp.
|
inline |
Set "timeout_ms" attribute value. timeout used for the board operations.
| value | new attribute value |
Definition at line 131 of file DaphneConf.hpp.
|
friend |
Definition at line 40 of file DaphneConf.hpp.
|
friend |
Definition at line 42 of file DaphneConf.hpp.
|
friend |
Definition at line 41 of file DaphneConf.hpp.
|
friend |
Definition at line 43 of file DaphneConf.hpp.
|
private |
Definition at line 92 of file DaphneConf.hpp.
|
private |
Definition at line 91 of file DaphneConf.hpp.
|
private |
Definition at line 93 of file DaphneConf.hpp.
|
private |
Definition at line 90 of file DaphneConf.hpp.
|
private |
Definition at line 89 of file DaphneConf.hpp.
|
inlinestatic |
Definition at line 176 of file DaphneConf.hpp.
|
static |
The name of the configuration class.
Definition at line 55 of file DaphneConf.hpp.
|
inlinestatic |
Definition at line 175 of file DaphneConf.hpp.
|
inlinestatic |
Definition at line 177 of file DaphneConf.hpp.
|
inlinestatic |
Definition at line 101 of file DaphneConf.hpp.
|
inlinestatic |
Definition at line 100 of file DaphneConf.hpp.