19 #ifndef RTC_CONFIGURATIONLISTENER_H 20 #define RTC_CONFIGURATIONLISTENER_H 23 #include <coil/Properties.h> 24 #include <coil/Mutex.h> 25 #include <coil/Guard.h> 100 static const char* typeString[] =
102 "ON_UPDATE_CONFIG_PARAM",
103 "CONFIG_PARAM_LISTENER_NUM" 107 return typeString[type];
136 virtual void operator()(
const char* config_set_name,
137 const char* config_param_name) = 0;
217 static const char* typeString[] =
221 "CONFIG_SET_LISTENER_NUM" 327 static const char* typeString[] =
329 "ON_UPDATE_CONFIG_SET",
330 "ON_REMOVE_CONFIG_SET",
331 "ON_ACTIVATE_CONFIG_SET",
332 "CONFIG_SET_NAME_LISTENER_NUM" 362 virtual void operator()(
const char* config_set_name) = 0;
384 typedef std::pair<ConfigurationParamListener*, bool>
Entry;
465 void notify(
const char* config_set_name,
const char* config_param_name);
492 typedef std::pair<ConfigurationSetListener*, bool>
Entry;
600 typedef std::pair<ConfigurationSetNameListener*, bool>
Entry;
680 void notify(
const char* config_set_name);
742 #endif // RTC_CONFIGURATIONLISTENER_H coil::Guard< coil::Mutex > Guard
static const char * toString(ConfigurationParamListenerType type)
Convert ConfigurationParamListenerType into the string.
ConfigurationSetNameListener holder class.
static const char * toString(ConfigurationSetListenerType type)
Convert ConfigurationSetNameListenerType into the string.
std::pair< ConfigurationSetListener *, bool > Entry
coil::Guard< coil::Mutex > Guard
ConfigurationSetListener class.
ConfigurationSetNameListener class.
ConfigurationParamListener class.
ConfigurationSetNameListenerType
The types of ConfigurationSetNameListener.
std::pair< ConfigurationParamListener *, bool > Entry
ConfigurationParamListener holder class.
ConfigurationSetListener holder class.
virtual ~ConfigurationParamListener()
Destructor.
static const char * toString(ConfigurationSetNameListenerType type)
Convert ConfigurationSetNameListenerType into the string.
virtual void operator()(const char *config_set_name, const char *config_param_name)=0
Virtual Callback function.
std::pair< ConfigurationSetNameListener *, bool > Entry
std::vector< Entry > m_listeners
Class represents a set of properties.
coil::Guard< coil::Mutex > Guard
std::vector< Entry > m_listeners
ConfigurationSetListenerType
The types of ConfigurationSetListener.
std::vector< Entry > m_listeners
ConfigurationParamListenerType
The types of ConnectorDataListener.