DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
Virtual converter class. More...
#include <Configuration.hpp>
Public Member Functions | |
virtual void | convert (T &value, const Configuration &conf, const ConfigObject &obj, const std::string &attr_name)=0 |
![]() | |
virtual | ~AttributeConverterBase () |
Virtual converter class.
To implement a converter for given type of attribute, a user needs to inherit from this class providing the attribute type and implementing the convert() method. To be used an object of the user converter class has to be registered using register_converter() method.
Definition at line 1350 of file Configuration.hpp.
|
pure virtual |
\brief Method to make the conversion of attribute value. When the converter object is registered, the convert() method is called for each
attribute value of given type to read any database object. The parameters passed to the convert method are described below:
value | reference on the value to be converted |
conf | const reference on the configuration object |
obj | const reference on the converted object |
attr_name | name of the attribute which value to be converted |
The method modifies parameter 'value', if a conversion is required.