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

ConnectorDataListener holder class. More...

#include <ConnectorListener.h>

Public Member Functions

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

Private Types

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

Private Attributes

std::vector< Entrym_listeners
coil::Mutex m_mutex

Detailed Description

ConnectorDataListener holder class.

This class manages one ore more instances of ConnectorDataListener class.

Definition at line 604 of file ConnectorListener.h.

Member Typedef Documentation

Definition at line 606 of file ConnectorListener.h.

Definition at line 607 of file ConnectorListener.h.

Constructor & Destructor Documentation

RTC::ConnectorDataListenerHolder::ConnectorDataListenerHolder ( )


Definition at line 49 of file ConnectorListener.cpp.

RTC::ConnectorDataListenerHolder::~ConnectorDataListenerHolder ( )


Definition at line 54 of file ConnectorListener.cpp.

Member Function Documentation

void RTC::ConnectorDataListenerHolder::addListener ( ConnectorDataListener 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 68 of file ConnectorListener.cpp.

void RTC::ConnectorDataListenerHolder::notify ( const ConnectorInfo info,
const cdrMemoryStream &  cdrdata 

Notify listeners.

This calls the Callback method of the registered listener.


Definition at line 96 of file ConnectorListener.cpp.

void RTC::ConnectorDataListenerHolder::removeListener ( ConnectorDataListener listener)

Remove the listener.

This method removes the listener.

listenerRemoved listener

Definition at line 76 of file ConnectorListener.cpp.

Member Data Documentation

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

Definition at line 691 of file ConnectorListener.h.

coil::Mutex RTC::ConnectorDataListenerHolder::m_mutex

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