PostComponentActionListener holder class. More...
#include <ComponentActionListener.h>
Public Member Functions | |
| void | addListener (PostComponentActionListener *listener, bool autoclean) |
| Add the listener. | |
| void | notify (UniqueId ec_id, ReturnCode_t ret) |
| Notify listeners. | |
| PostComponentActionListenerHolder () | |
| Constructor. | |
| void | removeListener (PostComponentActionListener *listener) |
| Remove the listener. | |
| virtual | ~PostComponentActionListenerHolder () |
| Destructor. | |
Private Types | |
| typedef std::pair < PostComponentActionListener *, bool > | Entry |
| typedef coil::Guard< coil::Mutex > | Guard |
Private Attributes | |
| std::vector< Entry > | m_listeners |
| coil::Mutex | m_mutex |
PostComponentActionListener holder class.
This class manages one ore more instances of PostComponentActionListener class.
Definition at line 700 of file ComponentActionListener.h.
typedef std::pair<PostComponentActionListener*, bool> RTC::PostComponentActionListenerHolder::Entry [private] |
Definition at line 702 of file ComponentActionListener.h.
typedef coil::Guard<coil::Mutex> RTC::PostComponentActionListenerHolder::Guard [private] |
Definition at line 703 of file ComponentActionListener.h.
Constructor.
Definition at line 139 of file ComponentActionListener.cpp.
Destructor.
Definition at line 144 of file ComponentActionListener.cpp.
| void RTC::PostComponentActionListenerHolder::addListener | ( | PostComponentActionListener * | 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 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.
| info | ConnectorInfo |
| cdrdata | Data |
Definition at line 186 of file ComponentActionListener.cpp.
| void RTC::PostComponentActionListenerHolder::removeListener | ( | PostComponentActionListener * | listener | ) |
Remove the listener.
This method removes the listener.
| listener | Removed listener |
Definition at line 166 of file ComponentActionListener.cpp.
std::vector<Entry> RTC::PostComponentActionListenerHolder::m_listeners [private] |
Definition at line 786 of file ComponentActionListener.h.
Definition at line 787 of file ComponentActionListener.h.