| 53 | \*---------------------------------------------------------------------------*/ |
| 54 | |
| 55 | class sigInt |
| 56 | { |
| 57 | // Private data |
| 58 | |
| 59 | //- Saved old signal trapping setting |
| 60 | static struct sigaction oldAction_; |
| 61 | |
| 62 | |
| 63 | // Private Member Functions |
| 64 | |
| 65 | static void sigHandler(int); |
| 66 | |
| 67 | |
| 68 | public: |
| 69 | |
| 70 | // Constructors |
| 71 | |
| 72 | //- Construct null |
| 73 | sigInt(); |
| 74 | |
| 75 | |
| 76 | //- Destructor |
| 77 | ~sigInt(); |
| 78 | |
| 79 | |
| 80 | // Member functions |
| 81 | |
| 82 | //- Activate SIGINT signal handler |
| 83 | void set(const bool verbose); |
| 84 | }; |
| 85 | |
| 86 | |
| 87 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // |