12 #ifndef _PosixSignalDispatcher_h_
13 #define _PosixSignalDispatcher_h_
51 runtime_error(whatArg) { }
62 runtime_error(whatArg) { }
87 throw( CannotAttachHandler ) ;
103 throw( CannotDetachHandler,
Gets a method called when the corresponding signal is received.
void DetachHandler(const int posixSignalNumber, const PosixSignalHandler &signalHandler)
Detach the specified signal handler from the signal dispatcher.
CannotAttachHandler(const std::string &whatArg)
Exception thrown when DetachHandler() fails due to a runtime error.
CannotDetachHandler(const std::string &whatArg)
Exception thrown when AttachHandler() fails due to a runtime error.
static PosixSignalDispatcher & Instance()
This is a singleton class and there is only one instance of this class per process.
PosixSignalDispatcher()
This is a singleton class and the only instances of this class can only be accessed using the Instanc...
const PosixSignalDispatcher & operator=(const PosixSignalDispatcher &otherInstance)
Copying of an instance of this class is not allowed.
void AttachHandler(const int posixSignalNumber, PosixSignalHandler &signalHandler)
Attach a signal handler to the signal dispatcher.
~PosixSignalDispatcher()
This class cannot be subclassed.