SigFn
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions | Variables
sigfn.hpp File Reference

SigFn C++ interface. More...

#include "sigfn.h"
#include <functional>
#include <string>
#include <unordered_map>

Go to the source code of this file.

Classes

class  sigfn::exception
 sigfn exception More...
 

Namespaces

namespace  sigfn
 

Typedefs

typedef std::function< void(int)> sigfn::handler_function
 signal handler function object type
 

Functions

DLL_EXPORT void sigfn::handle (int signum, const handler_function &handler_function)
 attach handler to specific signal using copy semantics
 
DLL_EXPORT void sigfn::handle (int signum, handler_function &&handler_function)
 attach handler to specific signal using move semantics
 
DLL_EXPORT void sigfn::ignore (int signum)
 ignore a specific signal
 
DLL_EXPORT void sigfn::reset (int signum)
 reset a specific signal to its default behavior
 

Variables

const std::string sigfn::INVALID_SIGNUM = "sigfn: invalid signal code"
 
const std::string sigfn::INVALID_HANDLER = "sigfn: invalid signal handler"
 

Detailed Description

SigFn C++ interface.

Author
John R. Patek Sr.