Public Member Functions | Private Types | Private Attributes | List of all members
RTC::ConfigurationParamListenerHolder Class Reference

ConfigurationParamListener holder class. More...

#include <ConfigurationListener.h>

Public Member Functions

void addListener (ConfigurationParamListener *listener, bool autoclean)
 Add the listener. More...
 ConfigurationParamListenerHolder ()
 Constructor. More...
void notify (const char *config_set_name, const char *config_param_name)
 Notify listeners. More...
void removeListener (ConfigurationParamListener *listener)
 Remove the listener. More...
virtual ~ConfigurationParamListenerHolder ()
 Destructor. More...

Private Types

typedef std::pair< ConfigurationParamListener *, bool > Entry
typedef coil::Guard< coil::MutexGuard

Private Attributes

std::vector< Entrym_listeners
coil::Mutex m_mutex

Detailed Description

ConfigurationParamListener holder class.

This class manages one ore more instances of ConfigurationParamListener class.

Definition at line 382 of file ConfigurationListener.h.

Member Typedef Documentation

Definition at line 384 of file ConfigurationListener.h.

Definition at line 385 of file ConfigurationListener.h.

Constructor & Destructor Documentation

RTC::ConfigurationParamListenerHolder::ConfigurationParamListenerHolder ( )


Definition at line 61 of file ConfigurationListener.cpp.

RTC::ConfigurationParamListenerHolder::~ConfigurationParamListenerHolder ( )


Definition at line 66 of file ConfigurationListener.cpp.

Member Function Documentation

void RTC::ConfigurationParamListenerHolder::addListener ( ConfigurationParamListener listener,
bool  autoclean 

Add the listener.

This method adds the listener.

listenerAdded listener
autocleantrue:The listener is deleted at the destructor., false:The listener is not deleted at the destructor.

Definition at line 80 of file ConfigurationListener.cpp.

void RTC::ConfigurationParamListenerHolder::notify ( const char *  config_set_name,
const char *  config_param_name 

Notify listeners.

This calls the Callback method of the registered listener.


Definition at line 110 of file ConfigurationListener.cpp.

void RTC::ConfigurationParamListenerHolder::removeListener ( ConfigurationParamListener listener)

Remove the listener.

This method removes the listener.

listenerRemoved listener

Definition at line 89 of file ConfigurationListener.cpp.

Member Data Documentation

std::vector<Entry> RTC::ConfigurationParamListenerHolder::m_listeners

Definition at line 468 of file ConfigurationListener.h.

coil::Mutex RTC::ConfigurationParamListenerHolder::m_mutex

Definition at line 469 of file ConfigurationListener.h.

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

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