KrisLibrary
1.0.0
|
A base class for an object-oriented signal handler. Properly restores old signal handlers once the class is destroyed. More...
#include <SignalHandler.h>
Public Member Functions | |
void | SetCurrent (int signum) |
bool | IsCurrent (int signum) const |
void | UnsetCurrent (int signum) |
virtual void | OnRaise (int signum)=0 |
Static Public Member Functions | |
static SignalHandler * | GetCurrent (int signum) |
A base class for an object-oriented signal handler. Properly restores old signal handlers once the class is destroyed.
Override the OnRaise() member in your subclass.
Set handler for a signal number with SetCurrent, unset it with UnsetCurrent.