#include <ConfigAdmin.h>
Public Member Functions | |
Config (const char *name, VarType &var, const char *def_val, TransFunc trans=coil::stringTo) | |
Constructor. | |
virtual bool | update (const char *val) |
Update a bind parameter value. | |
virtual | ~Config (void) |
Protected Attributes | |
TransFunc | m_trans |
Transformation function to convert configuration parameter type into string format. | |
VarType & | m_var |
Configuration parameter variable. |
Config class.
Class to hold the configuration parameter information. Specify the data type of the configuration as <VarType> Specify transformation function to convert data type set as <TransFunc> into string format.
VarType | Cariable to hold configuration parameter |
TransFunc | Transformation function to transform the stored data type into string format. |
Definition at line 283 of file ConfigAdmin.h.
RTC::Config< VarType, TransFunc >::Config | ( | const char * | name, |
VarType & | var, | ||
const char * | def_val, | ||
TransFunc | trans = coil::stringTo |
||
) | [inline] |
Constructor.
Constructor
name | Configuration parameter name |
var | Configuration parameter variable |
def_val | Default value in string format |
trans | Function to transform into string format |
Definition at line 312 of file ConfigAdmin.h.
virtual RTC::Config< VarType, TransFunc >::~Config | ( | void | ) | [inline, virtual] |
Virtual Destructor.
Definition at line 333 of file ConfigAdmin.h.
virtual bool RTC::Config< VarType, TransFunc >::update | ( | const char * | val | ) | [inline, virtual] |
Update a bind parameter value.
Update configuration paramater by the configuration value.
val | The parameter values converted into character string format |
Implements RTC::ConfigBase.
Definition at line 358 of file ConfigAdmin.h.
TransFunc RTC::Config< VarType, TransFunc >::m_trans [protected] |
Transformation function to convert configuration parameter type into string format.
Definition at line 383 of file ConfigAdmin.h.
VarType& RTC::Config< VarType, TransFunc >::m_var [protected] |
Configuration parameter variable.
Definition at line 373 of file ConfigAdmin.h.