All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions
Aux::SignalHandling Namespace Reference

Classes

class  InterruptException
 Special Exception to indicate, that a SIGINT has been received. More...
 

Functions

bool gotSIGINT ()
 Returns true, if CTRL+C/SIGINT has been received, false otherwise. More...
 
void setSIGINT (bool received)
 Sets the value of receivedSIGINT More...
 
void init (SignalHandler *caller)
 Registers the function setRunning to be invoked, when CTRL+C/SIGINT is received. More...
 
void reset (SignalHandler *caller)
 Resets receivedSIGINT to false and rootSet to false to allow a new initialization, if the calling object is the same as the root. More...
 

Function Documentation

bool Aux::SignalHandling::gotSIGINT ( )

Returns true, if CTRL+C/SIGINT has been received, false otherwise.

Returns
A boolean indicating if SIGINT has been received since construction/reset
void Aux::SignalHandling::init ( SignalHandler *  caller)

Registers the function setRunning to be invoked, when CTRL+C/SIGINT is received.

Also registers caller to be the root calling object, if none is registered yet.

Parameters
calleraddress of the calling object
void Aux::SignalHandling::reset ( SignalHandler *  caller)

Resets receivedSIGINT to false and rootSet to false to allow a new initialization, if the calling object is the same as the root.

Parameters
calleraddress of the calling object
void Aux::SignalHandling::setSIGINT ( bool  received)

Sets the value of receivedSIGINT

Parameters
receivedThe new value for receivedSIGINT