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

PortConnectRetListener holder class. More...

#include <PortConnectListener.h>

Public Member Functions

void addListener (PortConnectRetListener *listener, bool autoclean)
 Add the listener. More...
void notify (const char *portname, RTC::ConnectorProfile &profile, ReturnCode_t ret)
 Notify listeners. More...
 PortConnectRetListenerHolder ()
 Constructor. More...
void removeListener (PortConnectRetListener *listener)
 Remove the listener. More...
virtual ~PortConnectRetListenerHolder ()
 Destructor. More...

Private Types

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

Private Attributes

std::vector< Entrym_listeners
coil::Mutex m_mutex

Detailed Description

PortConnectRetListener holder class.

This class manages one ore more instances of PortConnectRetListener class.

Definition at line 382 of file PortConnectListener.h.

Member Typedef Documentation

Definition at line 384 of file PortConnectListener.h.

Definition at line 385 of file PortConnectListener.h.

Constructor & Destructor Documentation

RTC::PortConnectRetListenerHolder::PortConnectRetListenerHolder ( )


Definition at line 162 of file PortConnectListener.cpp.

RTC::PortConnectRetListenerHolder::~PortConnectRetListenerHolder ( )


Definition at line 167 of file PortConnectListener.cpp.

Member Function Documentation

void RTC::PortConnectRetListenerHolder::addListener ( PortConnectRetListener 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 181 of file PortConnectListener.cpp.

void RTC::PortConnectRetListenerHolder::notify ( const char *  portname,
RTC::ConnectorProfile &  profile,
ReturnCode_t  ret 

Notify listeners.

This calls the Callback method of the registered listener.


Definition at line 209 of file PortConnectListener.cpp.

void RTC::PortConnectRetListenerHolder::removeListener ( PortConnectRetListener listener)

Remove the listener.

This method removes the listener.

listenerRemoved listener

Definition at line 189 of file PortConnectListener.cpp.

Member Data Documentation

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

Definition at line 470 of file PortConnectListener.h.

coil::Mutex RTC::PortConnectRetListenerHolder::m_mutex

Definition at line 471 of file PortConnectListener.h.

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

Author(s): Noriaki Ando
autogenerated on Mon Jun 10 2019 14:08:04