Tool to watch and output config changes. More...
Public Member Functions | |
ConfigChangeWatcherTool (Configuration *config, FawkesNetworkClient *c) | |
Constructor. | |
virtual void | handle_signal (int signal) |
Signal hanlding method. | |
virtual void | config_tag_changed (const char *new_tag) |
virtual void | config_value_changed (const char *path, bool is_default, int value) |
virtual void | config_value_changed (const char *path, bool is_default, unsigned int value) |
virtual void | config_value_changed (const char *path, bool is_default, float value) |
virtual void | config_value_changed (const char *path, bool is_default, bool value) |
virtual void | config_value_changed (const char *path, bool is_default, const char *value) |
virtual void | config_comment_changed (const char *path, bool is_default, const char *comment) |
virtual void | config_value_erased (const char *path, bool is_default) |
void | run () |
Run. |
Tool to watch and output config changes.
Definition at line 37 of file main.cpp.
ConfigChangeWatcherTool::ConfigChangeWatcherTool | ( | Configuration * | config, | |
FawkesNetworkClient * | c | |||
) | [inline] |
Constructor.
config | Configuration to watch | |
c | network client, thread is cancelled on signal |
Definition at line 45 of file main.cpp.
References fawkes::Configuration::add_change_handler().
virtual void ConfigChangeWatcherTool::handle_signal | ( | int | signum | ) | [inline, virtual] |
Signal hanlding method.
Implement this method with the action you want to perform on the registered signals.
signum | signal number of triggered signal |
Implements fawkes::SignalHandler.
void ConfigChangeWatcherTool::run | ( | ) | [inline] |