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

PreComponentActionListener holder class. More...

#include <ComponentActionListener.h>

Public Member Functions

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

Private Types

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

Private Attributes

std::vector< Entrym_listeners
 
coil::Mutex m_mutex
 

Detailed Description

PreComponentActionListener holder class.

This class manages one ore more instances of PreComponentActionListener class.

Definition at line 594 of file ComponentActionListener.h.

Member Typedef Documentation

Definition at line 596 of file ComponentActionListener.h.

Definition at line 597 of file ComponentActionListener.h.

Constructor & Destructor Documentation

RTC::PreComponentActionListenerHolder::PreComponentActionListenerHolder ( )

Constructor.

Definition at line 73 of file ComponentActionListener.cpp.

RTC::PreComponentActionListenerHolder::~PreComponentActionListenerHolder ( )
virtual

Destructor.

Definition at line 78 of file ComponentActionListener.cpp.

Member Function Documentation

void RTC::PreComponentActionListenerHolder::addListener ( PreComponentActionListener listener,
bool  autoclean 
)

Add the listener.

This method adds the listener.

Parameters
listenerAdded listener
autocleantrue:The listener is deleted at the destructor., false:The listener is not deleted at the destructor.

Definition at line 92 of file ComponentActionListener.cpp.

void RTC::PreComponentActionListenerHolder::notify ( UniqueId  ec_id)

Notify listeners.

This calls the Callback method of the registered listener.

Parameters
infoConnectorInfo

Definition at line 122 of file ComponentActionListener.cpp.

void RTC::PreComponentActionListenerHolder::removeListener ( PreComponentActionListener listener)

Remove the listener.

This method removes the listener.

Parameters
listenerRemoved listener

Definition at line 101 of file ComponentActionListener.cpp.

Member Data Documentation

std::vector<Entry> RTC::PreComponentActionListenerHolder::m_listeners
private

Definition at line 679 of file ComponentActionListener.h.

coil::Mutex RTC::PreComponentActionListenerHolder::m_mutex
private

Definition at line 680 of file ComponentActionListener.h.


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


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