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) |
![]() | |
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 ConfigObjectImpl * | default_impl () noexcept |
Returns default implementation. | |
![]() | |
void | throw_if_deleted () const |
![]() | |
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 19 of file OksConfigObject.hpp.
|
noexcept |
Definition at line 107 of file OksConfigObject.cpp.
|
virtualnoexcept |
Definition at line 113 of file OksConfigObject.cpp.
|
virtual |
Virtual method to get object's database file name.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 118 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read boolean attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 126 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read relationship single-value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 232 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read double attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 186 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read float attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 180 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read signed short attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 150 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read signed long attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 162 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read signed 64 bits integer attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 174 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read signed char attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 138 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read string attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 192 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-booleans attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 282 of file OksConfigObject.cpp.
|
virtual |
|
virtual |
Virtual method to read vector-of-doubles attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 342 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-floats attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 336 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-signed-shorts attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 306 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-signed-longs attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 318 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-signed-64-bits-integers attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 330 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-signed-chars attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 294 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-strings attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 348 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-unsigned-shorts attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 300 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-unsigned-longs attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 312 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-unsigned-64-bits-integers attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 324 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-unsigned-chars attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 288 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read unsigned short attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 144 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read unsigned long attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 156 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read unsigned 64 bits integer attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 168 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read unsigned char attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 132 of file OksConfigObject.cpp.
OksData::Type OksConfigObject::get_type | ( | const std::string & | attribute | ) | const |
Definition at line 41 of file OksConfigObject.cpp.
|
private |
Definition at line 56 of file OksConfigObject.cpp.
|
private |
Definition at line 76 of file OksConfigObject.cpp.
|
virtual |
Virtual method to move object to a file.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 973 of file OksConfigObject.cpp.
|
virtual |
Definition at line 486 of file OksConfigObject.cpp.
|
virtual |
Definition at line 441 of file OksConfigObject.cpp.
|
virtual |
Virtual method to change object ID.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 1006 of file OksConfigObject.cpp.
|
virtual |
Virtual method to reset the implementation object from unknown state.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 1042 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set boolean attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 594 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read conffwk-object relationship value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 948 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set string attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 649 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-booleans attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 754 of file OksConfigObject.cpp.
|
virtual |
Definition at line 955 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-doubles attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 814 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-floats attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 808 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-signed-shorts attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 778 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-signed-longs attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 790 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-signed-64-bits-integers attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 802 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-signed-chars attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 766 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-strings attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 820 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-unsigned-shorts attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 772 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-unsigned-longs attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 784 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-unsigned-64-bits-integers attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 796 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-unsigned-chars attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 760 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set double attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 644 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set float attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 639 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set signed short attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 614 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set signed long attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 624 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set signed 64 bits integer attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 634 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set signed char attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 604 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set unsigned short attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 609 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set unsigned long attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 619 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set unsigned 64 bits integer attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 629 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set unsigned char attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 599 of file OksConfigObject.cpp.
|
inline |
Definition at line 144 of file OksConfigObject.hpp.
|
private |
Definition at line 529 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set enumeration attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 684 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-enumerations attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 862 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set date attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 717 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-dates attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 902 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set enumeration attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 655 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-enumerations attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 826 of file OksConfigObject.cpp.
|
private |
Definition at line 550 of file OksConfigObject.cpp.
|
virtual |
Virtual method to set time attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 735 of file OksConfigObject.cpp.
|
virtual |
Virtual method to read vector-of-times attribute value.
Implements dunedaq::conffwk::ConfigObjectImpl.
Definition at line 925 of file OksConfigObject.cpp.
|
private |
Definition at line 573 of file OksConfigObject.cpp.
|
private |
Definition at line 581 of file OksConfigObject.cpp.
|
friend |
Definition at line 21 of file OksConfigObject.hpp.
|
friend |
Definition at line 22 of file OksConfigObject.hpp.
|
private |
Definition at line 153 of file OksConfigObject.hpp.