Public Member Functions | Protected Attributes | List of all members
RTC::Config< VarType, TransFunc > Class Template Reference

Config class. More...

#include <ConfigAdmin.h>

Inheritance diagram for RTC::Config< VarType, TransFunc >:
Inheritance graph
[legend]

Public Member Functions

 Config (const char *name, VarType &var, const char *def_val, TransFunc trans=coil::stringTo)
 Constructor. More...
 
virtual bool update (const char *val)
 Update a bind parameter value. More...
 
virtual ~Config (void)
 Virtual Destructor. More...
 
- Public Member Functions inherited from RTC::ConfigBase
 ConfigBase (const char *name_, const char *def_val)
 Constructer. More...
 
virtual ~ConfigBase (void)
 Virtual Destructor. More...
 

Protected Attributes

TransFunc m_trans
 Transformation function to convert configuration parameter type into string format. More...
 
VarType & m_var
 Configuration parameter variable. More...
 

Additional Inherited Members

- Public Attributes inherited from RTC::ConfigBase
const char * default_value
 Default value in string format. More...
 
const char * name
 Configuration name. More...
 

Detailed Description

template<typename VarType, typename TransFunc = bool (*)(VarType&, const char*)>
class RTC::Config< VarType, TransFunc >

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.

Parameters
VarTypeCariable to hold configuration parameter
TransFuncTransformation function to transform the stored data type into string format.
Since
0.4.0

Definition at line 283 of file ConfigAdmin.h.

Constructor & Destructor Documentation

template<typename VarType, typename TransFunc = bool (*)(VarType&, const char*)>
RTC::Config< VarType, TransFunc >::Config ( const char *  name,
VarType &  var,
const char *  def_val,
TransFunc  trans = coil::stringTo 
)
inline

Constructor.

Constructor

Parameters
nameConfiguration parameter name
varConfiguration parameter variable
def_valDefault value in string format
transFunction to transform into string format

Definition at line 312 of file ConfigAdmin.h.

template<typename VarType, typename TransFunc = bool (*)(VarType&, const char*)>
virtual RTC::Config< VarType, TransFunc >::~Config ( void  )
inlinevirtual

Virtual Destructor.

Virtual Destructor.

Definition at line 333 of file ConfigAdmin.h.

Member Function Documentation

template<typename VarType, typename TransFunc = bool (*)(VarType&, const char*)>
virtual bool RTC::Config< VarType, TransFunc >::update ( const char *  val)
inlinevirtual

Update a bind parameter value.

Update configuration paramater by the configuration value.

Parameters
valThe parameter values converted into character string format
Returns
Update result (Successful:true, Failed:false)

Implements RTC::ConfigBase.

Definition at line 358 of file ConfigAdmin.h.

Member Data Documentation

template<typename VarType, typename TransFunc = bool (*)(VarType&, const char*)>
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.

template<typename VarType, typename TransFunc = bool (*)(VarType&, const char*)>
VarType& RTC::Config< VarType, TransFunc >::m_var
protected

Configuration parameter variable.

Definition at line 373 of file ConfigAdmin.h.


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


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Jun 10 2019 14:08:03