ConfigurationSetNameListener holder class. More...
#include <ConfigurationListener.h>
Public Member Functions | |
| void | addListener (ConfigurationSetNameListener *listener, bool autoclean) |
| Add the listener. | |
| ConfigurationSetNameListenerHolder () | |
| Constructor. | |
| void | notify (const char *config_set_name) |
| Notify listeners. | |
| void | removeListener (ConfigurationSetNameListener *listener) |
| Remove the listener. | |
| virtual | ~ConfigurationSetNameListenerHolder () |
| Destructor. | |
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.
typedef std::pair<ConfigurationSetNameListener*, bool> RTC::ConfigurationSetNameListenerHolder::Entry [private] |
Definition at line 600 of file ConfigurationListener.h.
typedef coil::Guard<coil::Mutex> RTC::ConfigurationSetNameListenerHolder::Guard [private] |
Definition at line 601 of file ConfigurationListener.h.
Constructor.
Definition at line 196 of file ConfigurationListener.cpp.
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.
std::vector<Entry> RTC::ConfigurationSetNameListenerHolder::m_listeners [private] |
Definition at line 683 of file ConfigurationListener.h.
Definition at line 684 of file ConfigurationListener.h.