|
My Project
|
#include <Signal.h>
Public Member Functions | |
| Signal (int sigNo) | |
| Signal (int sigNo, SIG_HANDLER(*handler)) | |
| Signal (int sigNo, SIG_HANDLER(*handler), sigset_t *sigSet) | |
| Signal (int sigNo, SIG_ACTION(*action)) | |
| Signal (int sigNo, SIG_ACTION(*action), sigset_t *sigSet) | |
| void | installHandler (SIG_HANDLER(*handler)) |
| void | installHandler (SIG_ACTION(*action)) |
| ~Signal () | |
Class to encapsulate signal handling.
| Signal::Signal | ( | int | sigNo | ) |
Constructor with no sigset or handler.
....................................................................... Constructor with no sigmask or handler.
| Signal::Signal | ( | int | sigNo, |
| SIG_HANDLER * | handler | ||
| ) |
| Signal::Signal | ( | int | sigNo, |
| SIG_HANDLER * | handler, | ||
| sigset_t * | sigSet | ||
| ) |
| Signal::Signal | ( | int | sigNo, |
| SIG_ACTION * | action | ||
| ) |
Action constructor with no sigset.
....................................................................... Action constructor with no sigmask.
| Signal::Signal | ( | int | sigNo, |
| SIG_ACTION * | action, | ||
| sigset_t * | sigSet | ||
| ) |
Action constructor with sigset.
....................................................................... Action constructor with sigmask.
| Signal::~Signal | ( | ) |
Destructor
....................................................................... Destructor
| void Signal::installHandler | ( | SIG_HANDLER * | handler | ) |
Install a handler, in case we want to declare a global Signal type before the handler is declared.
....................................................................... Install a handler.
| void Signal::installHandler | ( | SIG_ACTION * | action | ) |
Overloaded method to install an action as the handler, in case we want to declare a global Signal type before the handler is declared.
....................................................................... Install a handler (as an action).