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

ConfigurationSetNameListener holder class. More...

#include <ConfigurationListener.h>

Public Member Functions

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

Private Types

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

Private Attributes

std::vector< Entrym_listeners
coil::Mutex m_mutex

Detailed Description

ConfigurationSetNameListener holder class.

This class manages one ore more instances of ConfigurationSetNameListener class.

Definition at line 598 of file ConfigurationListener.h.

Member Typedef Documentation

Definition at line 600 of file ConfigurationListener.h.

Definition at line 601 of file ConfigurationListener.h.

Constructor & Destructor Documentation

RTC::ConfigurationSetNameListenerHolder::ConfigurationSetNameListenerHolder ( )


Definition at line 196 of file ConfigurationListener.cpp.

RTC::ConfigurationSetNameListenerHolder::~ConfigurationSetNameListenerHolder ( )


Definition at line 201 of file ConfigurationListener.cpp.

Member Function Documentation

void RTC::ConfigurationSetNameListenerHolder::addListener ( ConfigurationSetNameListener 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 215 of file ConfigurationListener.cpp.

void RTC::ConfigurationSetNameListenerHolder::notify ( const char *  config_set_name)

Notify listeners.

This calls the Callback method of the registered listener.


Definition at line 243 of file ConfigurationListener.cpp.

void RTC::ConfigurationSetNameListenerHolder::removeListener ( ConfigurationSetNameListener listener)

Remove the listener.

This method removes the listener.

listenerRemoved listener

Definition at line 223 of file ConfigurationListener.cpp.

Member Data Documentation

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

Definition at line 683 of file ConfigurationListener.h.

coil::Mutex RTC::ConfigurationSetNameListenerHolder::m_mutex

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