|
Open Model Railroad Network (OpenMRN)
|
Virtual interface for the config update listeners to register themselves for receiving configuration updates. More...
#include <ConfigUpdateService.hxx>
Public Member Functions | |
| virtual void | register_update_listener (ConfigUpdateListener *listener)=0 |
| Adds a config update listener to be called upon configuration updates. | |
| virtual void | unregister_update_listener (ConfigUpdateListener *listener)=0 |
| Removes a config update listener. | |
| virtual void | trigger_update ()=0 |
| Executes an update in response to the configuration having changed. | |
Additional Inherited Members | |
Static Public Member Functions inherited from Singleton< ConfigUpdateService > | |
| static ConfigUpdateService * | instance () |
| static bool | exists () |
Virtual interface for the config update listeners to register themselves for receiving configuration updates.
Definition at line 44 of file ConfigUpdateService.hxx.
|
pure virtual |
Adds a config update listener to be called upon configuration updates.
Should be called before the startup of the stack in order to ensure that the initial load will be successful.
| listener | pointer to the implementation that needs to listen to config updates. |
Implemented in openlcb::ConfigUpdateFlow.
|
pure virtual |
Executes an update in response to the configuration having changed.
Implemented in openlcb::ConfigUpdateFlow.
|
pure virtual |
Removes a config update listener.
Requires: the listener has been inserted before using register_update_listener.
| listener | pointer to the implementation that needs to be removed. |
Implemented in openlcb::ConfigUpdateFlow.