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

PortConnectListener holder class. More...

#include <PortConnectListener.h>

List of all members.

Public Member Functions

void addListener (PortConnectListener *listener, bool autoclean)
 Add the listener.
void notify (const char *portname, RTC::ConnectorProfile &profile)
 Notify listeners.
 PortConnectListenerHolder ()
void removeListener (PortConnectListener *listener)
 Remove the listener.
virtual ~PortConnectListenerHolder ()

Private Types

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

Private Attributes

std::vector< Entrym_listeners
coil::Mutex m_mutex

Detailed Description

PortConnectListener holder class.

This class manages one ore more instances of PortConnectListener class.

Definition at line 276 of file PortConnectListener.h.

Member Typedef Documentation

typedef std::pair<PortConnectListener*, bool> RTC::PortConnectListenerHolder::Entry [private]

Definition at line 278 of file PortConnectListener.h.

Definition at line 279 of file PortConnectListener.h.

Constructor & Destructor Documentation


Definition at line 97 of file PortConnectListener.cpp.


Definition at line 102 of file PortConnectListener.cpp.

Member Function Documentation

void RTC::PortConnectListenerHolder::addListener ( PortConnectListener 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 115 of file PortConnectListener.cpp.

void RTC::PortConnectListenerHolder::notify ( const char *  portname,
RTC::ConnectorProfile &  profile 

Notify listeners.

This calls the Callback method of the registered listener.


Definition at line 144 of file PortConnectListener.cpp.

Remove the listener.

This method removes the listener.

listenerRemoved listener

Definition at line 123 of file PortConnectListener.cpp.

Member Data Documentation

Definition at line 361 of file PortConnectListener.h.

Definition at line 362 of file PortConnectListener.h.

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

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