|
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 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 100 of file OksConfigObject.cpp.
|
virtualnoexcept |
Definition at line 106 of file OksConfigObject.cpp.
|
virtual |
Virtual method to get object's database file name.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 109 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read boolean attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 117 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read relationship single-value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 214 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read double attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 177 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read float attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 171 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read signed short attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 141 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read signed long attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 153 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read signed 64 bits integer attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 165 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read signed char attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 129 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read string attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 183 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-booleans attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 254 of file OksConfigObject.cpp.
|
virtual |
|
virtual |
Virtual method to read vector-of-doubles attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 314 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-floats attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 308 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-signed-shorts attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 278 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-signed-longs attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 290 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-signed-64-bits-integers attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 302 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-signed-chars attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 266 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-strings attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 320 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-unsigned-shorts attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 272 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-unsigned-longs attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 284 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-unsigned-64-bits-integers attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 296 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-unsigned-chars attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 260 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read unsigned short attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 135 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read unsigned long attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 147 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read unsigned 64 bits integer attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 159 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read unsigned char attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 123 of file OksConfigObject.cpp.
| OksData::Type OksConfigObject::get_type | ( | const std::string & | attribute | ) | const |
Definition at line 47 of file OksConfigObject.cpp.
|
private |
Definition at line 59 of file OksConfigObject.cpp.
|
private |
Definition at line 75 of file OksConfigObject.cpp.
|
virtual |
Virtual method to move object to a file.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 877 of file OksConfigObject.cpp.
|
virtual |
Definition at line 426 of file OksConfigObject.cpp.
|
virtual |
Definition at line 390 of file OksConfigObject.cpp.
|
virtual |
Virtual method to change object ID.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 902 of file OksConfigObject.cpp.
|
virtual |
Virtual method to reset the implementation object from unknown state.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 935 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set boolean attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 518 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read conffwk-object relationship value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 850 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set string attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 584 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-booleans attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 675 of file OksConfigObject.cpp.
|
virtual |
Definition at line 858 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-doubles attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 735 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-floats attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 729 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-signed-shorts attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 699 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-signed-longs attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 711 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-signed-64-bits-integers attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 723 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-signed-chars attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 687 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-strings attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 741 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-unsigned-shorts attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 693 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-unsigned-longs attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 705 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-unsigned-64-bits-integers attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 717 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-unsigned-chars attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 681 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set double attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 578 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set float attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 572 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set signed short attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 542 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set signed long attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 554 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set signed 64 bits integer attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 566 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set signed char attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 530 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set unsigned short attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 536 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set unsigned long attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 548 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set unsigned 64 bits integer attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 560 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set unsigned char attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 524 of file OksConfigObject.cpp.
|
inline |
Definition at line 153 of file OksConfigObject.hpp.
|
private |
Definition at line 465 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set enumeration attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 615 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-enumerations attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 776 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set date attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 645 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-dates attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 812 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set enumeration attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 590 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-enumerations attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 747 of file OksConfigObject.cpp.
|
private |
Definition at line 481 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set time attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 660 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-times attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 831 of file OksConfigObject.cpp.
|
private |
Definition at line 498 of file OksConfigObject.cpp.
|
private |
Definition at line 506 of file OksConfigObject.cpp.
|
friend |
Definition at line 29 of file OksConfigObject.hpp.
|
friend |
Definition at line 30 of file OksConfigObject.hpp.
|
private |
Definition at line 158 of file OksConfigObject.hpp.