Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
ConfigUpdateService.hxx
Go to the documentation of this file.
1
35#ifndef _UTILS_CONFIGUPDATESERVICE_HXX_
36#define _UTILS_CONFIGUPDATESERVICE_HXX_
37
38#include "utils/Singleton.hxx"
39
41
44class ConfigUpdateService : public Singleton<ConfigUpdateService>
45{
46public:
61
63 virtual void trigger_update() = 0;
64};
65
66#endif // _UTILS_CONFIGUPDATESERVICE_HXX_
Abstract class for components that need to receive configuration from EEPROM.
Virtual interface for the config update listeners to register themselves for receiving configuration ...
virtual void register_update_listener(ConfigUpdateListener *listener)=0
Adds a config update listener to be called upon configuration updates.
virtual void trigger_update()=0
Executes an update in response to the configuration having changed.
virtual void unregister_update_listener(ConfigUpdateListener *listener)=0
Removes a config update listener.
Singleton class.
Definition Singleton.hxx:65