DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::conffwk::Configuration::AttributeConverter< T > Class Template Referenceabstract

Virtual converter class. More...

#include <Configuration.hpp>

Inheritance diagram for dunedaq::conffwk::Configuration::AttributeConverter< T >:
[legend]
Collaboration diagram for dunedaq::conffwk::Configuration::AttributeConverter< T >:
[legend]

Public Member Functions

virtual void convert (T &value, const Configuration &conf, const ConfigObject &obj, const std::string &attr_name)=0
 
- Public Member Functions inherited from dunedaq::conffwk::Configuration::AttributeConverterBase
virtual ~AttributeConverterBase ()
 

Detailed Description

template<class T>
class dunedaq::conffwk::Configuration::AttributeConverter< T >

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.

Member Function Documentation

◆ convert()

template<class T >
virtual void dunedaq::conffwk::Configuration::AttributeConverter< T >::convert ( T & value,
const Configuration & conf,
const ConfigObject & obj,
const std::string & attr_name )
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:

Parameters
valuereference on the value to be converted
confconst reference on the configuration object
objconst reference on the converted object
attr_namename of the attribute which value to be converted

The method modifies parameter 'value', if a conversion is required.


The documentation for this class was generated from the following file: