ExecutionContextActionListener holder class. More...
#include <ComponentActionListener.h>
Public Member Functions | |
void | addListener (ExecutionContextActionListener *listener, bool autoclean) |
Add the listener. | |
ExecutionContextActionListenerHolder () | |
Constructor. | |
void | notify (UniqueId ec_id) |
Notify listeners. | |
void | removeListener (ExecutionContextActionListener *listener) |
Remove the listener. | |
virtual | ~ExecutionContextActionListenerHolder () |
Destructor. | |
Private Types | |
typedef std::pair < ExecutionContextActionListener *, bool > | Entry |
typedef coil::Guard< coil::Mutex > | Guard |
Private Attributes | |
std::vector< Entry > | m_listeners |
coil::Mutex | m_mutex |
ExecutionContextActionListener holder class.
This class manages one ore more instances of ExecutionContextActionListener class.
Definition at line 914 of file ComponentActionListener.h.
typedef std::pair<ExecutionContextActionListener*, bool> RTC::ExecutionContextActionListenerHolder::Entry [private] |
Definition at line 916 of file ComponentActionListener.h.
typedef coil::Guard<coil::Mutex> RTC::ExecutionContextActionListenerHolder::Guard [private] |
Definition at line 917 of file ComponentActionListener.h.
Constructor.
Definition at line 269 of file ComponentActionListener.cpp.
Destructor.
Definition at line 274 of file ComponentActionListener.cpp.
void RTC::ExecutionContextActionListenerHolder::addListener | ( | ExecutionContextActionListener * | listener, |
bool | autoclean | ||
) |
Add the listener.
This method adds the listener.
listener | Added listener |
autoclean | true:The listener is deleted at the destructor., false:The listener is not deleted at the destructor. |
Definition at line 288 of file ComponentActionListener.cpp.
void RTC::ExecutionContextActionListenerHolder::notify | ( | UniqueId | ec_id | ) |
Notify listeners.
This calls the Callback method of the registered listener.
info | ConnectorInfo |
cdrdata | Data |
Definition at line 318 of file ComponentActionListener.cpp.
void RTC::ExecutionContextActionListenerHolder::removeListener | ( | ExecutionContextActionListener * | listener | ) |
Remove the listener.
This method removes the listener.
listener | Removed listener |
Definition at line 297 of file ComponentActionListener.cpp.
std::vector<Entry> RTC::ExecutionContextActionListenerHolder::m_listeners [private] |
Definition at line 1000 of file ComponentActionListener.h.
Definition at line 1001 of file ComponentActionListener.h.