ConfigurationParamListener holder class. More...
#include <ConfigurationListener.h>
Public Member Functions | |
| void | addListener (ConfigurationParamListener *listener, bool autoclean) |
| Add the listener. | |
| ConfigurationParamListenerHolder () | |
| Constructor. | |
| void | notify (const char *config_set_name, const char *config_param_name) |
| Notify listeners. | |
| void | removeListener (ConfigurationParamListener *listener) |
| Remove the listener. | |
| virtual | ~ConfigurationParamListenerHolder () |
| Destructor. | |
Private Types | |
| typedef std::pair < ConfigurationParamListener *, bool > | Entry |
| typedef coil::Guard< coil::Mutex > | Guard |
Private Attributes | |
| std::vector< Entry > | m_listeners |
| coil::Mutex | m_mutex |
ConfigurationParamListener holder class.
This class manages one ore more instances of ConfigurationParamListener class.
Definition at line 382 of file ConfigurationListener.h.
typedef std::pair<ConfigurationParamListener*, bool> RTC::ConfigurationParamListenerHolder::Entry [private] |
Definition at line 384 of file ConfigurationListener.h.
typedef coil::Guard<coil::Mutex> RTC::ConfigurationParamListenerHolder::Guard [private] |
Definition at line 385 of file ConfigurationListener.h.
Constructor.
Definition at line 61 of file ConfigurationListener.cpp.
Destructor.
Definition at line 66 of file ConfigurationListener.cpp.
| void RTC::ConfigurationParamListenerHolder::addListener | ( | ConfigurationParamListener * | 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 80 of file ConfigurationListener.cpp.
| void RTC::ConfigurationParamListenerHolder::notify | ( | const char * | config_set_name, |
| const char * | config_param_name | ||
| ) |
Notify listeners.
This calls the Callback method of the registered listener.
| info | ConnectorInfo |
| cdrdata | Data |
Definition at line 110 of file ConfigurationListener.cpp.
| void RTC::ConfigurationParamListenerHolder::removeListener | ( | ConfigurationParamListener * | listener | ) |
Remove the listener.
This method removes the listener.
| listener | Removed listener |
Definition at line 89 of file ConfigurationListener.cpp.
std::vector<Entry> RTC::ConfigurationParamListenerHolder::m_listeners [private] |
Definition at line 468 of file ConfigurationListener.h.
Definition at line 469 of file ConfigurationListener.h.