Fawkes API
Fawkes Development Version
|
Interface for signal handling. More...
#include <utils/system/signal.h>
Public Member Functions | |
virtual | ~SignalHandler () |
Virtual destructor. More... | |
virtual void | handle_signal (int signal)=0 |
Signal hanlding method. More... | |
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.
|
inlinevirtual |
|
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, fawkes::FawkesMainThread::Runner, JoystickQuitHandler, ConfigChangeWatcherTool, and PluginTool.
Referenced by fawkes::SignalManager::ignore(), and ~SignalHandler().