ConfigurationSetNameListener holder class. More...
#include <ConfigurationListener.h>
Public Member Functions | |
| void | addListener (ConfigurationSetNameListener *listener, bool autoclean) |
| Add the listener. More... | |
| ConfigurationSetNameListenerHolder () | |
| Constructor. More... | |
| void | notify (const char *config_set_name) |
| Notify listeners. More... | |
| void | removeListener (ConfigurationSetNameListener *listener) |
| Remove the listener. More... | |
| virtual | ~ConfigurationSetNameListenerHolder () |
| Destructor. More... | |
Private Types | |
| typedef std::pair< ConfigurationSetNameListener *, bool > | Entry |
| typedef coil::Guard< coil::Mutex > | Guard |
Private Attributes | |
| std::vector< Entry > | m_listeners |
| coil::Mutex | m_mutex |
ConfigurationSetNameListener holder class.
This class manages one ore more instances of ConfigurationSetNameListener class.
Definition at line 598 of file ConfigurationListener.h.
|
private |
Definition at line 600 of file ConfigurationListener.h.
|
private |
Definition at line 601 of file ConfigurationListener.h.
| RTC::ConfigurationSetNameListenerHolder::ConfigurationSetNameListenerHolder | ( | ) |
Constructor.
Definition at line 196 of file ConfigurationListener.cpp.
|
virtual |
Destructor.
Definition at line 201 of file ConfigurationListener.cpp.
| void RTC::ConfigurationSetNameListenerHolder::addListener | ( | ConfigurationSetNameListener * | 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 215 of file ConfigurationListener.cpp.
| void RTC::ConfigurationSetNameListenerHolder::notify | ( | const char * | config_set_name | ) |
Notify listeners.
This calls the Callback method of the registered listener.
| info | ConnectorInfo |
Definition at line 243 of file ConfigurationListener.cpp.
| void RTC::ConfigurationSetNameListenerHolder::removeListener | ( | ConfigurationSetNameListener * | listener | ) |
Remove the listener.
This method removes the listener.
| listener | Removed listener |
Definition at line 223 of file ConfigurationListener.cpp.
|
private |
Definition at line 683 of file ConfigurationListener.h.
|
private |
Definition at line 684 of file ConfigurationListener.h.