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

PostComponentActionListener holder class. More...

#include <ComponentActionListener.h>

Public Member Functions

void addListener (PostComponentActionListener *listener, bool autoclean)
 Add the listener. More...
void notify (UniqueId ec_id, ReturnCode_t ret)
 Notify listeners. More...
 PostComponentActionListenerHolder ()
 Constructor. More...
void removeListener (PostComponentActionListener *listener)
 Remove the listener. More...
virtual ~PostComponentActionListenerHolder ()
 Destructor. More...

Private Types

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

Private Attributes

std::vector< Entrym_listeners
coil::Mutex m_mutex

Detailed Description

PostComponentActionListener holder class.

This class manages one ore more instances of PostComponentActionListener class.

Definition at line 700 of file ComponentActionListener.h.

Member Typedef Documentation

Definition at line 702 of file ComponentActionListener.h.

Definition at line 703 of file ComponentActionListener.h.

Constructor & Destructor Documentation

RTC::PostComponentActionListenerHolder::PostComponentActionListenerHolder ( )


Definition at line 139 of file ComponentActionListener.cpp.

RTC::PostComponentActionListenerHolder::~PostComponentActionListenerHolder ( )


Definition at line 144 of file ComponentActionListener.cpp.

Member Function Documentation

void RTC::PostComponentActionListenerHolder::addListener ( PostComponentActionListener 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 158 of file ComponentActionListener.cpp.

void RTC::PostComponentActionListenerHolder::notify ( UniqueId  ec_id,
ReturnCode_t  ret 

Notify listeners.

This calls the Callback method of the registered listener.


Definition at line 186 of file ComponentActionListener.cpp.

void RTC::PostComponentActionListenerHolder::removeListener ( PostComponentActionListener listener)

Remove the listener.

This method removes the listener.

listenerRemoved listener

Definition at line 166 of file ComponentActionListener.cpp.

Member Data Documentation

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

Definition at line 786 of file ComponentActionListener.h.

coil::Mutex RTC::PostComponentActionListenerHolder::m_mutex

Definition at line 787 of file ComponentActionListener.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