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

ConfigurationSetListener holder class. More...

#include <ConfigurationListener.h>

Public Member Functions

void addListener (ConfigurationSetListener *listener, bool autoclean)
 Add the listener. More...
 ConfigurationSetListenerHolder ()
 Constructor. More...
void notify (const coil::Properties &config_set)
 Notify listeners. More...
void removeListener (ConfigurationSetListener *listener)
 Remove the listener. More...
virtual ~ConfigurationSetListenerHolder ()
 Destructor. More...

Private Types

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

Private Attributes

std::vector< Entrym_listeners
coil::Mutex m_mutex

Detailed Description

ConfigurationSetListener holder class.

This class manages one ore more instances of ConfigurationSetListener class.

Definition at line 490 of file ConfigurationListener.h.

Member Typedef Documentation

Definition at line 492 of file ConfigurationListener.h.

Definition at line 493 of file ConfigurationListener.h.

Constructor & Destructor Documentation

RTC::ConfigurationSetListenerHolder::ConfigurationSetListenerHolder ( )


Definition at line 129 of file ConfigurationListener.cpp.

RTC::ConfigurationSetListenerHolder::~ConfigurationSetListenerHolder ( )


Definition at line 134 of file ConfigurationListener.cpp.

Member Function Documentation

void RTC::ConfigurationSetListenerHolder::addListener ( ConfigurationSetListener 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 148 of file ConfigurationListener.cpp.

void RTC::ConfigurationSetListenerHolder::notify ( const coil::Properties config_set)

Notify listeners.

This calls the Callback method of the registered listener.


Definition at line 179 of file ConfigurationListener.cpp.

void RTC::ConfigurationSetListenerHolder::removeListener ( ConfigurationSetListener listener)

Remove the listener.

This method removes the listener.

listenerRemoved listener

Definition at line 157 of file ConfigurationListener.cpp.

Member Data Documentation

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

Definition at line 576 of file ConfigurationListener.h.

coil::Mutex RTC::ConfigurationSetListenerHolder::m_mutex

Definition at line 577 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