Static class with methods for signal handling.
More...
#include <SignalHandler.H>
|
| static void | processSignal (int sig) |
| | Invokes the appropriate exit method based on the given signal. More...
|
| |
Static class with methods for signal handling.
◆ init()
Initializes the signal handler.
- Parameters
-
| [in] | program | Name of executable |
| [in] | f1 | Function to invoke when exiting without saving |
| [in] | f2 | Function to invoke when exiting with save |
| [in] | f3 | Function to invoke when sub-processes should go away also |
◆ processSignal()
| void SignalHandler::processSignal |
( |
int |
sig | ) |
|
|
staticprotected |
Invokes the appropriate exit method based on the given signal.
◆ reset()
| void SignalHandler::reset |
( |
| ) |
|
|
static |
Resets the signal handler to default behaviour.
◆ emergencyExit
Function to invoke when exiting without saving.
◆ emergencySaveExit
Function to invoke when exiting with save.
◆ killAllChilds
Function to invoke when sub-processes should go away also.
◆ myProgName
| std::string SignalHandler::myProgName |
|
staticprotected |
The documentation for this class was generated from the following files: