Public Member Functions | Private Types | Private Attributes
RTC::ConnectorListenerHolder Class Reference

ConnectorListener holder class. More...

#include <ConnectorListener.h>

List of all members.

Public Member Functions

void addListener (ConnectorListener *listener, bool autoclean)
 Add the listener.
 ConnectorListenerHolder ()
void notify (const ConnectorInfo &info)
 Notify listeners.
void removeListener (ConnectorListener *listener)
 Remove the listener.
virtual ~ConnectorListenerHolder ()

Private Types

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

Private Attributes

std::vector< Entrym_listeners
coil::Mutex m_mutex

Detailed Description

ConnectorListener holder class.

This class manages one ore more instances of ConnectorListener class.

Definition at line 711 of file ConnectorListener.h.

Member Typedef Documentation

typedef std::pair<ConnectorListener*, bool> RTC::ConnectorListenerHolder::Entry [private]

Definition at line 713 of file ConnectorListener.h.

Definition at line 714 of file ConnectorListener.h.

Constructor & Destructor Documentation


Definition at line 114 of file ConnectorListener.cpp.


Definition at line 119 of file ConnectorListener.cpp.

Member Function Documentation

void RTC::ConnectorListenerHolder::addListener ( ConnectorListener 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 132 of file ConnectorListener.cpp.

Notify listeners.

This calls the Callback method of the registered listener.


Definition at line 161 of file ConnectorListener.cpp.

Remove the listener.

This method removes the listener.

listenerRemoved listener

Definition at line 140 of file ConnectorListener.cpp.

Member Data Documentation

Definition at line 796 of file ConnectorListener.h.

Definition at line 797 of file ConnectorListener.h.

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

Author(s): Noriaki Ando
autogenerated on Sat Jun 8 2019 18:49:13