|
Fawkes API
Fawkes Development Version
|
Interface for signal handling. More...
#include <utils/system/signal.h>

Public Member Functions | |
| virtual | ~SignalHandler () |
| Virtual destructor. | |
| virtual void | handle_signal (int signal)=0 |
| Signal hanlding method. | |
Interface for signal handling.
Derive this class and implement handle_signal() to handle signals. The handler must then be registered via SignalManager::register_handler(). From then on handle_signal() is called if the desired signal has been received.
| fawkes::SignalHandler::~SignalHandler | ( | ) | [inline, virtual] |
| void fawkes::SignalHandler::handle_signal | ( | int | signum | ) | [pure virtual] |
Signal hanlding method.
Implement this method with the action you want to perform on the registered signals.
| signum | signal number of triggered signal |
Implemented in JoystickBlackBoardLogger, FawkesBeepDaemon, FawkesMainApp, JoystickQuitHandler, ConfigChangeWatcherTool, and PluginTool.