Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
sigHandler.h
Go to the documentation of this file.
1
6#pragma once
7
8namespace ext {
9
19 static void handler(int);
20
21protected:
26 SigHandler();
27
33
34};
35
36} /* namespace ext */
37
Singleton class providing interupt or segmentation fault signal handler.
Definition: sigHandler.h:14
static SigHandler HANDLER
The singleton instance.
Definition: sigHandler.h:32
SigHandler()
Constructor of the singleton. The constructor registers the handler method to be a callback on interu...
Definition: sigHandler.cpp:42
Definition: sigHandler.cpp:20