Public Member Functions | List of all members
ConfigAdmin::ConfigAdminMock Class Reference
Inheritance diagram for ConfigAdmin::ConfigAdminMock:
Inheritance graph
[legend]

Public Member Functions

 ConfigAdminMock (coil::Properties &configsets)
 
void onActivateSetMock (const char *config_id)
 
void onAddConfigurationSetMock (const coil::Properties &config_set)
 
void onRemoveConfigurationSetMock (const char *config_id)
 
void onSetConfigurationSetMock (const coil::Properties &config_set)
 
void onUpdateMock (const char *config_set)
 
void onUpdateParamMock (const char *config_set, const char *config_param)
 
virtual ~ConfigAdminMock (void)
 
- Public Member Functions inherited from RTC::ConfigAdmin
bool activateConfigurationSet (const char *config_id)
 Activate the configuration set. More...
 
void addConfigurationParamListener (ConfigurationParamListenerType type, ConfigurationParamListener *listener, bool autoclean=true)
 Adding ConfigurationParamListener. More...
 
bool addConfigurationSet (const coil::Properties &configuration_set)
 Add the configuration value to configuration set. More...
 
void addConfigurationSetListener (ConfigurationSetListenerType type, ConfigurationSetListener *listener, bool autoclean=true)
 Adding ConfigurationSetListener. More...
 
void addConfigurationSetNameListener (ConfigurationSetNameListenerType type, ConfigurationSetNameListener *listener, bool autoclean=true)
 Adding ConfigurationSetNameListener. More...
 
template<typename VarType >
bool bindParameter (const char *param_name, VarType &var, const char *def_val, bool(*trans)(VarType &, const char *)=coil::stringTo)
 Setup for configuration parameters. More...
 
 ConfigAdmin (coil::Properties &prop)
 Constructor. More...
 
const coil::PropertiesgetActiveConfigurationSet (void)
 Get the active configuration set. More...
 
const char * getActiveId (void)
 Get ID of active configuration set. More...
 
const coil::PropertiesgetConfigurationSet (const char *config_id)
 Get a configuration set by specified ID. More...
 
const std::vector< coil::Properties * > & getConfigurationSets (void)
 Get all configuration sets. More...
 
bool haveConfig (const char *config_id)
 Check the existence of configuration set. More...
 
bool isActive (void)
 Confirm to activate configuration set. More...
 
bool isChanged (void)
 Confirm to change configuration parameters. More...
 
bool isExist (const char *name)
 Check the existence of configuration parameters. More...
 
void removeConfigurationParamListener (ConfigurationParamListenerType type, ConfigurationParamListener *listener)
 Removing ConfigurationParamListener. More...
 
bool removeConfigurationSet (const char *config_id)
 Remove the configuration set. More...
 
void removeConfigurationSetListener (ConfigurationSetListenerType type, ConfigurationSetListener *listener)
 Removing ConfigurationSetListener. More...
 
void removeConfigurationSetNameListener (ConfigurationSetNameListenerType type, ConfigurationSetNameListener *listener)
 Removing ConfigurationSetNameListener. More...
 
bool setConfigurationSetValues (const coil::Properties &configuration_set)
 Add to configuration set from specified property. More...
 
void setOnActivateSet (OnActivateSetCallback *cb)
 
void setOnAddConfigurationSet (OnAddConfigurationAddCallback *cb)
 
void setOnRemoveConfigurationSet (OnRemoveConfigurationSetCallback *cb)
 
void setOnSetConfigurationSet (OnSetConfigurationSetCallback *cb)
 
void setOnUpdate (OnUpdateCallback *cb)
 
void setOnUpdateParam (OnUpdateParamCallback *cb)
 
void update (void)
 Update the values of configuration parameters (Active configuration set) More...
 
void update (const char *config_set)
 Update configuration parameter (By ID) More...
 
void update (const char *config_set, const char *config_param)
 Update the values of configuration parameters (By name) More...
 
 ~ConfigAdmin (void)
 Virtual Destructor. More...
 

Additional Inherited Members

- Protected Member Functions inherited from RTC::ConfigAdmin
void onActivateSet (const char *config_id)
 Called when the configuration set is made active. More...
 
void onAddConfigurationSet (const coil::Properties &config_set)
 Called when a set value is added to the configuration set. More...
 
void onRemoveConfigurationSet (const char *config_id)
 Called when the configuration set has been deleted. More...
 
void onSetConfigurationSet (const coil::Properties &config_set)
 Called when the property is added to the configuration set. More...
 
void onUpdate (const char *config_set)
 When the configuration parameter is updated, it is called. More...
 
void onUpdateParam (const char *config_set, const char *config_param)
 When the configuration parameter is updated, it is called. More...
 

Detailed Description

Definition at line 257 of file ConfigAdminTests.cpp.

Constructor & Destructor Documentation

◆ ConfigAdminMock()

ConfigAdmin::ConfigAdminMock::ConfigAdminMock ( coil::Properties configsets)
inline

Definition at line 260 of file ConfigAdminTests.cpp.

◆ ~ConfigAdminMock()

virtual ConfigAdmin::ConfigAdminMock::~ConfigAdminMock ( void  )
inlinevirtual

Definition at line 262 of file ConfigAdminTests.cpp.

Member Function Documentation

◆ onActivateSetMock()

void ConfigAdmin::ConfigAdminMock::onActivateSetMock ( const char *  config_id)
inline

Definition at line 294 of file ConfigAdminTests.cpp.

◆ onAddConfigurationSetMock()

void ConfigAdmin::ConfigAdminMock::onAddConfigurationSetMock ( const coil::Properties config_set)
inline

Definition at line 282 of file ConfigAdminTests.cpp.

◆ onRemoveConfigurationSetMock()

void ConfigAdmin::ConfigAdminMock::onRemoveConfigurationSetMock ( const char *  config_id)
inline

Definition at line 288 of file ConfigAdminTests.cpp.

◆ onSetConfigurationSetMock()

void ConfigAdmin::ConfigAdminMock::onSetConfigurationSetMock ( const coil::Properties config_set)
inline

Definition at line 276 of file ConfigAdminTests.cpp.

◆ onUpdateMock()

void ConfigAdmin::ConfigAdminMock::onUpdateMock ( const char *  config_set)
inline

Definition at line 264 of file ConfigAdminTests.cpp.

◆ onUpdateParamMock()

void ConfigAdmin::ConfigAdminMock::onUpdateParamMock ( const char *  config_set,
const char *  config_param 
)
inline

Definition at line 270 of file ConfigAdminTests.cpp.


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


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Feb 28 2022 23:00:46