PortActionListener holder class. More...
#include <ComponentActionListener.h>
Public Member Functions | |
void | addListener (PortActionListener *listener, bool autoclean) |
Add the listener. | |
void | notify (const RTC::PortProfile &pprofile) |
Notify listeners. | |
PortActionListenerHolder () | |
Constructor. | |
void | removeListener (PortActionListener *listener) |
Remove the listener. | |
virtual | ~PortActionListenerHolder () |
Destructor. | |
Private Types | |
typedef std::pair < PortActionListener *, bool > | Entry |
typedef coil::Guard< coil::Mutex > | Guard |
Private Attributes | |
std::vector< Entry > | m_listeners |
coil::Mutex | m_mutex |
PortActionListener holder class.
This class manages one ore more instances of PortActionListener class.
Definition at line 808 of file ComponentActionListener.h.
typedef std::pair<PortActionListener*, bool> RTC::PortActionListenerHolder::Entry [private] |
Definition at line 810 of file ComponentActionListener.h.
typedef coil::Guard<coil::Mutex> RTC::PortActionListenerHolder::Guard [private] |
Definition at line 811 of file ComponentActionListener.h.
Constructor.
Definition at line 204 of file ComponentActionListener.cpp.
RTC::PortActionListenerHolder::~PortActionListenerHolder | ( | ) | [virtual] |
Destructor.
Definition at line 209 of file ComponentActionListener.cpp.
void RTC::PortActionListenerHolder::addListener | ( | PortActionListener * | 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 222 of file ComponentActionListener.cpp.
void RTC::PortActionListenerHolder::notify | ( | const RTC::PortProfile & | pprofile | ) |
Notify listeners.
This calls the Callback method of the registered listener.
info | ConnectorInfo |
cdrdata | Data |
Definition at line 251 of file ComponentActionListener.cpp.
void RTC::PortActionListenerHolder::removeListener | ( | PortActionListener * | listener | ) |
Remove the listener.
This method removes the listener.
listener | Removed listener |
Definition at line 230 of file ComponentActionListener.cpp.
std::vector<Entry> RTC::PortActionListenerHolder::m_listeners [private] |
Definition at line 894 of file ComponentActionListener.h.
Definition at line 895 of file ComponentActionListener.h.