Ice 3.7 C++11 API Reference
|
Go to the documentation of this file.
5 #ifndef ICE_UTIL_CTRL_C_HANDLER_H
6 #define ICE_UTIL_CTRL_C_HANDLER_H
20 #ifdef ICE_CPP11_MAPPING
85 #ifndef ICE_CPP11_MAPPING
Provides a portable way to handle Ctrl-C and Ctrl-C like signals.
Definition: CtrlCHandler.h:34
std::function< void(int sig)> CtrlCHandlerCallback
Invoked when a signal occurs.
Definition: CtrlCHandler.h:21
CtrlCHandlerCallback getCallback() const
Obtains the signal callback.
CtrlCHandler(CtrlCHandlerCallback cb=nullptr)
Registers a callback function that handles Ctrl-C like signals.
virtual std::string ice_id() const
Returns the type ID of this exception.
Raised by the CtrlCHandler constructor if another CtrlCHandler already exists.
Definition: CtrlCHandler.h:79
Definition: Optional.h:1095
#define ICE_API
Definition: Config.h:197
#define ICE_NULLPTR
Definition: Config.h:362
CtrlCHandlerException(const char *, int)
CtrlCHandlerCallback setCallback(CtrlCHandlerCallback cb)
Replaces the signal callback.
~CtrlCHandler()
Unregisters the callback function.
Helper template for the implementation of Ice::Exception.
Definition: Exception.h:128