Sierra Toolkit Version of the Day
sierra::SignalHandler Class Reference

Class SignalHandler ... More...

#include <SignalHandler.hpp>

List of all members.

Public Member Functions

void handle_signal (int signal)
 Member function handle_signal ...
void add_handler (int signal, CallbackBase &callback)
 Member function add_handler ...
void add_handler (const String &signal_name, CallbackBase &callback)
 Member function add_handler ...
void remove_handler (int signal, CallbackBase &callback)
 Member function remove_handler ...
void remove_handler (const String &signal_name, CallbackBase &callback)
 Member function remove_handler ...
void remove_all_handlers ()
 Member function remove_all_handlers ...

Static Public Member Functions

static SignalHandlerinstance ()
 Member function instance ...
static bool check_signal_name (const sierra::String &signal)

Detailed Description

Class SignalHandler ...

Definition at line 31 of file SignalHandler.hpp.


Member Function Documentation

SignalHandler & sierra::SignalHandler::instance ( ) [static]

Member function instance ...

Returns:
a Handler ...

Definition at line 80 of file SignalHandler.cpp.

void sierra::SignalHandler::handle_signal ( int  signal)

Member function handle_signal ...

Parameters:
signalan int variable ...

Definition at line 88 of file SignalHandler.cpp.

void sierra::SignalHandler::add_handler ( int  signal,
CallbackBase callback 
)

Member function add_handler ...

Parameters:
signalan int variable ...
callbacka CallbackBase variable ...

Definition at line 139 of file SignalHandler.cpp.

void sierra::SignalHandler::add_handler ( const String signal_name,
CallbackBase callback 
)

Member function add_handler ...

Parameters:
signal_namea String variable ...
callbacka CallbackBase variable ...

Definition at line 121 of file SignalHandler.cpp.

void sierra::SignalHandler::remove_handler ( int  signal,
CallbackBase callback 
)

Member function remove_handler ...

Parameters:
signalan int variable ...
callbacka CallbackBase variable ...

Definition at line 160 of file SignalHandler.cpp.

void sierra::SignalHandler::remove_handler ( const String signal_name,
CallbackBase callback 
)

Member function remove_handler ...

Parameters:
signal_namea String variable ...
callbacka CallbackBase variable ...

Definition at line 187 of file SignalHandler.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines