|
OpenRTM-aist 2.1.0
|
#include <ConfigAdmin.h>


Public Member Functions | |
| Config (const char *conf_name, VarType &var, const char *def_val, TransFunc trans=coil::stringTo) | |
| Constructor. | |
| ~Config () override=default | |
| Virtual Destructor. | |
| bool | update (const char *val) override |
| Update a bind parameter value. | |
| Public Member Functions inherited from RTC::ConfigBase | |
| ConfigBase (const char *name_, const char *def_val) | |
| Constructer. | |
| virtual | ~ConfigBase ()=default |
| Virtual Destructor. | |
| void | setCallback (ConfigAdmin *cadmin, CallbackFunc cbf) |
| Setting callback. | |
| void | notifyUpdate (const char *key, const char *val) |
| Observer function to notify variable changed. | |
Protected Attributes | |
| VarType & | m_var |
| Configuration parameter variable . | |
| TransFunc | m_trans |
| Transformation function to convert configuration parameter type into string format. . | |
| Protected Attributes inherited from RTC::ConfigBase | |
| std::string | string_value |
| Current value in string format . | |
| ConfigAdmin * | m_admin |
| A pointer to the ConfigAdmin object . | |
| CallbackFunc | m_callback |
| A member function pointer to the callback function. . | |
Additional Inherited Members | |
| Public Types inherited from RTC::ConfigBase | |
| using | CallbackFunc = void (ConfigAdmin::*)(const char *, const char*) |
| Public Attributes inherited from RTC::ConfigBase | |
| const char * | name |
| Configuration name . | |
| const char * | default_value |
| Default value in string format . | |
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. |
|
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 |
References RTC::ConfigBase::ConfigBase(), m_trans, and m_var.
|
overridedefault |
Virtual Destructor.
Virtual Destructor.
|
inlineoverridevirtual |
Update a bind parameter value.
Update configuration paramater by the configuration value.
| val | The parameter values converted into character string format |
Implements RTC::ConfigBase.
References RTC::ConfigBase::default_value, m_trans, m_var, RTC::ConfigBase::name, RTC::ConfigBase::notifyUpdate(), and RTC::ConfigBase::string_value.
|
protected |
|
protected |