PreComponentActionListener holder class. More...
#include <ComponentActionListener.h>
Public Member Functions | |
void | addListener (PreComponentActionListener *listener, bool autoclean) |
Add the listener. | |
void | notify (UniqueId ec_id) |
Notify listeners. | |
PreComponentActionListenerHolder () | |
Constructor. | |
void | removeListener (PreComponentActionListener *listener) |
Remove the listener. | |
virtual | ~PreComponentActionListenerHolder () |
Destructor. | |
Private Types | |
typedef std::pair < PreComponentActionListener *, bool > | Entry |
typedef coil::Guard< coil::Mutex > | Guard |
Private Attributes | |
std::vector< Entry > | m_listeners |
coil::Mutex | m_mutex |
PreComponentActionListener holder class.
This class manages one ore more instances of PreComponentActionListener class.
Definition at line 594 of file ComponentActionListener.h.
typedef std::pair<PreComponentActionListener*, bool> RTC::PreComponentActionListenerHolder::Entry [private] |
Definition at line 596 of file ComponentActionListener.h.
typedef coil::Guard<coil::Mutex> RTC::PreComponentActionListenerHolder::Guard [private] |
Definition at line 597 of file ComponentActionListener.h.
Constructor.
Definition at line 73 of file ComponentActionListener.cpp.
Destructor.
Definition at line 78 of file ComponentActionListener.cpp.
void RTC::PreComponentActionListenerHolder::addListener | ( | PreComponentActionListener * | 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 92 of file ComponentActionListener.cpp.
void RTC::PreComponentActionListenerHolder::notify | ( | UniqueId | ec_id | ) |
Notify listeners.
This calls the Callback method of the registered listener.
info | ConnectorInfo |
Definition at line 122 of file ComponentActionListener.cpp.
void RTC::PreComponentActionListenerHolder::removeListener | ( | PreComponentActionListener * | listener | ) |
Remove the listener.
This method removes the listener.
listener | Removed listener |
Definition at line 101 of file ComponentActionListener.cpp.
std::vector<Entry> RTC::PreComponentActionListenerHolder::m_listeners [private] |
Definition at line 679 of file ComponentActionListener.h.
Definition at line 680 of file ComponentActionListener.h.