5#ifndef ICE_UTIL_CTRL_C_HANDLER_H
6#define ICE_UTIL_CTRL_C_HANDLER_H
11#ifdef ICE_CPP11_MAPPING
24#ifdef ICE_CPP11_MAPPING
89#ifndef ICE_CPP11_MAPPING
#define ICE_API
Definition Config.h:197
#define ICE_NULLPTR
Definition Config.h:362
virtual std::string ice_id() const
Returns the type ID of this exception.
CtrlCHandlerException(const char *, int)
CtrlCHandler(CtrlCHandlerCallback cb=nullptr)
Registers a callback function that handles Ctrl-C like signals.
~CtrlCHandler()
Unregisters the callback function.
CtrlCHandlerCallback getCallback() const
Obtains the signal callback.
CtrlCHandlerCallback setCallback(CtrlCHandlerCallback cb)
Replaces the signal callback.
Helper template for the implementation of Ice::Exception.
Definition Exception.h:128
std::unique_ptr< CtrlCHandlerException > ice_clone() const
Definition Exception.h:133
CtrlCHandler(CtrlCHandlerCallback cb=nullptr)
Registers a callback function that handles Ctrl-C like signals.
Definition Optional.h:1095
std::function< void(int sig)> CtrlCHandlerCallback
Invoked when a signal occurs.
Definition CtrlCHandler.h:25