|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <OksConfigObject.hpp>
Public Member Functions | |
| OksConfigObject (oks::OksObject *obj, conffwk::ConfigurationImpl *impl) noexcept | |
| virtual | ~OksConfigObject () noexcept |
| virtual const std::string | contained_in () const |
| Virtual method to get object's database file name. | |
| virtual void | get (const std::string &name, bool &value) |
| Virtual method to read boolean attribute value. | |
| virtual void | get (const std::string &name, uint8_t &value) |
| Virtual method to read unsigned char attribute value. | |
| virtual void | get (const std::string &name, int8_t &value) |
| Virtual method to read signed char attribute value. | |
| virtual void | get (const std::string &name, uint16_t &value) |
| Virtual method to read unsigned short attribute value. | |
| virtual void | get (const std::string &name, int16_t &value) |
| Virtual method to read signed short attribute value. | |
| virtual void | get (const std::string &name, uint32_t &value) |
| Virtual method to read unsigned long attribute value. | |
| virtual void | get (const std::string &name, int32_t &value) |
| Virtual method to read signed long attribute value. | |
| virtual void | get (const std::string &name, uint64_t &value) |
| Virtual method to read unsigned 64 bits integer attribute value. | |
| virtual void | get (const std::string &name, int64_t &value) |
| Virtual method to read signed 64 bits integer attribute value. | |
| virtual void | get (const std::string &name, float &value) |
| Virtual method to read float attribute value. | |
| virtual void | get (const std::string &name, double &value) |
| Virtual method to read double attribute value. | |
| virtual void | get (const std::string &name, std::string &value) |
| Virtual method to read string attribute value. | |
| virtual void | get (const std::string &name, conffwk::ConfigObject &value) |
| Virtual method to read relationship single-value. | |
| virtual void | get (const std::string &name, std::vector< bool > &value) |
| Virtual method to read vector-of-booleans attribute value. | |
| virtual void | get (const std::string &name, std::vector< uint8_t > &value) |
| Virtual method to read vector-of-unsigned-chars attribute value. | |
| virtual void | get (const std::string &name, std::vector< int8_t > &value) |
| Virtual method to read vector-of-signed-chars attribute value. | |
| virtual void | get (const std::string &name, std::vector< uint16_t > &value) |
| Virtual method to read vector-of-unsigned-shorts attribute value. | |
| virtual void | get (const std::string &name, std::vector< int16_t > &value) |
| Virtual method to read vector-of-signed-shorts attribute value. | |
| virtual void | get (const std::string &name, std::vector< uint32_t > &value) |
| Virtual method to read vector-of-unsigned-longs attribute value. | |
| virtual void | get (const std::string &name, std::vector< int32_t > &value) |
| Virtual method to read vector-of-signed-longs attribute value. | |
| virtual void | get (const std::string &name, std::vector< uint64_t > &value) |
| Virtual method to read vector-of-unsigned-64-bits-integers attribute value. | |
| virtual void | get (const std::string &name, std::vector< int64_t > &value) |
| Virtual method to read vector-of-signed-64-bits-integers attribute value. | |
| virtual void | get (const std::string &name, std::vector< float > &value) |
| Virtual method to read vector-of-floats attribute value. | |
| virtual void | get (const std::string &name, std::vector< double > &value) |
| Virtual method to read vector-of-doubles attribute value. | |
| virtual void | get (const std::string &name, std::vector< std::string > &value) |
| Virtual method to read vector-of-strings attribute value. | |
| virtual void | get (const std::string &name, std::vector< conffwk::ConfigObject > &value) |
| virtual bool | rel (const std::string &name, std::vector< conffwk::ConfigObject > &value) |
| virtual void | referenced_by (std::vector< conffwk::ConfigObject > &value, const std::string &association, bool check_composite_only, unsigned long rlevel, const std::vector< std::string > *rclasses) const |
| virtual void | set (const std::string &name, bool value) |
| Virtual method to set boolean attribute value. | |
| virtual void | set (const std::string &name, uint8_t value) |
| Virtual method to set unsigned char attribute value. | |
| virtual void | set (const std::string &name, int8_t value) |
| Virtual method to set signed char attribute value. | |
| virtual void | set (const std::string &name, uint16_t value) |
| Virtual method to set unsigned short attribute value. | |
| virtual void | set (const std::string &name, int16_t value) |
| Virtual method to set signed short attribute value. | |
| virtual void | set (const std::string &name, uint32_t value) |
| Virtual method to set unsigned long attribute value. | |
| virtual void | set (const std::string &name, int32_t value) |
| Virtual method to set signed long attribute value. | |
| virtual void | set (const std::string &name, uint64_t value) |
| Virtual method to set unsigned 64 bits integer attribute value. | |
| virtual void | set (const std::string &name, int64_t value) |
| Virtual method to set signed 64 bits integer attribute value. | |
| virtual void | set (const std::string &name, float value) |
| Virtual method to set float attribute value. | |
| virtual void | set (const std::string &name, double value) |
| Virtual method to set double attribute value. | |
| virtual void | set (const std::string &name, const std::string &value) |
| Virtual method to set string attribute value. | |
| virtual void | set_enum (const std::string &attribute, const std::string &value) |
| Virtual method to set enumeration attribute value. | |
| virtual void | set_date (const std::string &attribute, const std::string &value) |
| Virtual method to set date attribute value. | |
| virtual void | set_time (const std::string &attribute, const std::string &value) |
| Virtual method to set time attribute value. | |
| virtual void | set_class (const std::string &attribute, const std::string &value) |
| Virtual method to set enumeration attribute value. | |
| virtual void | set (const std::string &name, const std::vector< bool > &value) |
| Virtual method to read vector-of-booleans attribute value. | |
| virtual void | set (const std::string &name, const std::vector< uint8_t > &value) |
| Virtual method to read vector-of-unsigned-chars attribute value. | |
| virtual void | set (const std::string &name, const std::vector< int8_t > &value) |
| Virtual method to read vector-of-signed-chars attribute value. | |
| virtual void | set (const std::string &name, const std::vector< uint16_t > &value) |
| Virtual method to read vector-of-unsigned-shorts attribute value. | |
| virtual void | set (const std::string &name, const std::vector< int16_t > &value) |
| Virtual method to read vector-of-signed-shorts attribute value. | |
| virtual void | set (const std::string &name, const std::vector< uint32_t > &value) |
| Virtual method to read vector-of-unsigned-longs attribute value. | |
| virtual void | set (const std::string &name, const std::vector< int32_t > &value) |
| Virtual method to read vector-of-signed-longs attribute value. | |
| virtual void | set (const std::string &name, const std::vector< uint64_t > &value) |
| Virtual method to read vector-of-unsigned-64-bits-integers attribute value. | |
| virtual void | set (const std::string &name, const std::vector< int64_t > &value) |
| Virtual method to read vector-of-signed-64-bits-integers attribute value. | |
| virtual void | set (const std::string &name, const std::vector< float > &value) |
| Virtual method to read vector-of-floats attribute value. | |
| virtual void | set (const std::string &name, const std::vector< double > &value) |
| Virtual method to read vector-of-doubles attribute value. | |
| virtual void | set (const std::string &name, const std::vector< std::string > &value) |
| Virtual method to read vector-of-strings attribute value. | |
| virtual void | set_enum (const std::string &attribute, const std::vector< std::string > &value) |
| Virtual method to read vector-of-enumerations attribute value. | |
| virtual void | set_date (const std::string &attribute, const std::vector< std::string > &value) |
| Virtual method to read vector-of-dates attribute value. | |
| virtual void | set_time (const std::string &attribute, const std::vector< std::string > &value) |
| Virtual method to read vector-of-times attribute value. | |
| virtual void | set_class (const std::string &attribute, const std::vector< std::string > &value) |
| Virtual method to read vector-of-enumerations attribute value. | |
| virtual void | set (const std::string &name, const conffwk::ConfigObject *value, bool skip_non_null_check) |
| Virtual method to read conffwk-object relationship value. | |
| virtual void | set (const std::string &name, const std::vector< const conffwk::ConfigObject * > &value, bool skip_non_null_check) |
| virtual void | move (const std::string &at) |
| Virtual method to move object to a file. | |
| virtual void | rename (const std::string &new_id) |
| Virtual method to change object ID. | |
| virtual void | reset () |
| Virtual method to reset the implementation object from unknown state. | |
| oks::OksData::Type | get_type (const std::string &attribute) const |
| void | set (oks::OksObject *obj) |
| Public Member Functions inherited from dunedaq::conffwk::ConfigObjectImpl | |
| ConfigObjectImpl (ConfigurationImpl *impl, const std::string &id, dunedaq::conffwk::ObjectState state=dunedaq::conffwk::Valid) noexcept | |
| The constructor stores configuration implementation pointer. | |
| virtual | ~ConfigObjectImpl () noexcept |
| The virtual destructor. | |
| const std::string & | UID () const noexcept |
| Method to get database object's unique ID. | |
| const std::string & | class_name () const noexcept |
| Virtual method to get object's class name. | |
| virtual void | get (const std::string &association, std::vector< ConfigObject > &value)=0 |
| Virtual method to read vector-of-conffwk-objects relationship value. | |
| virtual bool | rel (const std::string &name, std::vector< ConfigObject > &value)=0 |
| Virtual method to read any relationship value without throwing an exception if there is no such relationship (return false). | |
| virtual void | referenced_by (std::vector< ConfigObject > &value, const std::string &association, bool check_composite_only, unsigned long rlevel, const std::vector< std::string > *rclasses) const =0 |
| Virtual method to read vector-of-conffwk-object referencing this object. | |
| virtual void | set (const std::string &association, const std::vector< const ConfigObject * > &value, bool skip_non_null_check)=0 |
| Virtual method to read vector-of-conffwk-objects relationship value. | |
| virtual void | clear () noexcept |
| Virtual method to clean resources used by the implementation object. | |
| bool | is_deleted () const |
| Check object and return true if the object has been deleted. | |
Private Member Functions | |
| template<class T> | |
| void | get_value (const std::string &name, T &value) |
| template<class T> | |
| void | get_vector (const std::string &name, std::vector< T > &value) |
| void | set_attr_value (const std::string &name, oks::OksData &value) |
| void | set_rel_value (const std::string &name, oks::OksData &value, bool skip_non_null_check) |
| template<class T> | |
| void | set_value (const std::string &name, const T &value) |
| template<class T> | |
| void | set_vector (const std::string &name, const std::vector< T > &value) |
Private Attributes | |
| oks::OksObject * | m_obj |
Friends | |
| class | ConfigurationImpl |
| class | OksConfiguration |
Additional Inherited Members | |
| Static Public Member Functions inherited from dunedaq::conffwk::ConfigObjectImpl | |
| static ConfigObjectImpl * | default_impl () noexcept |
| Returns default implementation. | |
| Protected Member Functions inherited from dunedaq::conffwk::ConfigObjectImpl | |
| void | throw_if_deleted () const |
| Protected Attributes inherited from dunedaq::conffwk::ConfigObjectImpl | |
| ConfigurationImpl * | m_impl |
| dunedaq::conffwk::ObjectState | m_state |
| std::string | m_id |
| const std::string * | m_class_name |
| std::mutex | m_mutex |
Definition at line 26 of file OksConfigObject.hpp.
|
noexcept |
Definition at line 114 of file OksConfigObject.cpp.
|
virtualnoexcept |
Definition at line 120 of file OksConfigObject.cpp.
|
virtual |
Virtual method to get object's database file name.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 125 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read boolean attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 133 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read relationship single-value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 239 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read double attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 193 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read float attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 187 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read signed short attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 157 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read signed long attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 169 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read signed 64 bits integer attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 181 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read signed char attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 145 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read string attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 199 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-booleans attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 289 of file OksConfigObject.cpp.
|
virtual |
|
virtual |
Virtual method to read vector-of-doubles attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 349 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-floats attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 343 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-signed-shorts attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 313 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-signed-longs attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 325 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-signed-64-bits-integers attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 337 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-signed-chars attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 301 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-strings attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 355 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-unsigned-shorts attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 307 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-unsigned-longs attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 319 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-unsigned-64-bits-integers attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 331 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-unsigned-chars attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 295 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read unsigned short attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 151 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read unsigned long attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 163 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read unsigned 64 bits integer attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 175 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read unsigned char attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 139 of file OksConfigObject.cpp.
| OksData::Type OksConfigObject::get_type | ( | const std::string & | attribute | ) | const |
Definition at line 48 of file OksConfigObject.cpp.
|
private |
Definition at line 63 of file OksConfigObject.cpp.
|
private |
Definition at line 83 of file OksConfigObject.cpp.
|
virtual |
Virtual method to move object to a file.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 980 of file OksConfigObject.cpp.
|
virtual |
Definition at line 493 of file OksConfigObject.cpp.
|
virtual |
Definition at line 448 of file OksConfigObject.cpp.
|
virtual |
Virtual method to change object ID.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 1013 of file OksConfigObject.cpp.
|
virtual |
Virtual method to reset the implementation object from unknown state.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 1049 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set boolean attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 601 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read conffwk-object relationship value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 955 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set string attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 656 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-booleans attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 761 of file OksConfigObject.cpp.
|
virtual |
Definition at line 962 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-doubles attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 821 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-floats attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 815 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-signed-shorts attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 785 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-signed-longs attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 797 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-signed-64-bits-integers attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 809 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-signed-chars attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 773 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-strings attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 827 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-unsigned-shorts attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 779 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-unsigned-longs attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 791 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-unsigned-64-bits-integers attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 803 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-unsigned-chars attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 767 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set double attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 651 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set float attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 646 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set signed short attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 621 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set signed long attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 631 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set signed 64 bits integer attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 641 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set signed char attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 611 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set unsigned short attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 616 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set unsigned long attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 626 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set unsigned 64 bits integer attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 636 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set unsigned char attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 606 of file OksConfigObject.cpp.
|
inline |
Definition at line 151 of file OksConfigObject.hpp.
|
private |
Definition at line 536 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set enumeration attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 691 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-enumerations attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 869 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set date attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 724 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-dates attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 909 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set enumeration attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 662 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-enumerations attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 833 of file OksConfigObject.cpp.
|
private |
Definition at line 557 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set time attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 742 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-times attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 932 of file OksConfigObject.cpp.
|
private |
Definition at line 580 of file OksConfigObject.cpp.
|
private |
Definition at line 588 of file OksConfigObject.cpp.
|
friend |
Definition at line 28 of file OksConfigObject.hpp.
|
friend |
Definition at line 29 of file OksConfigObject.hpp.
|
private |
Definition at line 160 of file OksConfigObject.hpp.