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

ConnectorListener holder class. More...

#include <ConnectorListener.h>

Public Member Functions

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

Private Types

typedef std::pair< ConnectorListener *, bool > Entry
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

Definition at line 713 of file ConnectorListener.h.

Definition at line 714 of file ConnectorListener.h.

Constructor & Destructor Documentation

RTC::ConnectorListenerHolder::ConnectorListenerHolder ( )


Definition at line 114 of file ConnectorListener.cpp.

RTC::ConnectorListenerHolder::~ConnectorListenerHolder ( )


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.

void RTC::ConnectorListenerHolder::notify ( const ConnectorInfo info)

Notify listeners.

This calls the Callback method of the registered listener.


Definition at line 161 of file ConnectorListener.cpp.

void RTC::ConnectorListenerHolder::removeListener ( ConnectorListener listener)

Remove the listener.

This method removes the listener.

listenerRemoved listener

Definition at line 140 of file ConnectorListener.cpp.

Member Data Documentation

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

Definition at line 796 of file ConnectorListener.h.

coil::Mutex RTC::ConnectorListenerHolder::m_mutex

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 Mon Jun 10 2019 14:08:03