Public Member Functions

ConfigChangeWatcherTool Class Reference

Tool to watch and output config changes. More...

Inheritance diagram for ConfigChangeWatcherTool:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

Tool to watch and output config changes.

Definition at line 37 of file main.cpp.


Constructor & Destructor Documentation

ConfigChangeWatcherTool::ConfigChangeWatcherTool ( Configuration config,
FawkesNetworkClient c 
) [inline]

Constructor.

Parameters:
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().


Member Function Documentation

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.

Parameters:
signum signal number of triggered signal
Author:
Tim Niemueller

Implements fawkes::SignalHandler.

Definition at line 53 of file main.cpp.

void ConfigChangeWatcherTool::run (  )  [inline]

Run.

This joins the network thread.

Definition at line 104 of file main.cpp.


The documentation for this class was generated from the following file: