PGROUTING  2.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SignalHandler Class Reference

#include "signalhandler.h"

Public Member Functions

EventHandlerregisterHandler (int signum, EventHandler *eh)
 
void removeHandler (int signum)
 

Static Public Member Functions

static SignalHandlerinstance (void)
 

Private Member Functions

 SignalHandler (void)
 

Static Private Member Functions

static void dispatcher (int signum)
 

Static Private Attributes

static SignalHandlerinstance_ = NULL
 
static EventHandlersignalHandlers_ [NSIG]
 

Detailed Description

Definition at line 70 of file signalhandler.h.

Constructor & Destructor Documentation

SignalHandler::SignalHandler ( void  )
inlineprivate

Definition at line 87 of file signalhandler.h.

Referenced by instance().

Member Function Documentation

void SignalHandler::dispatcher ( int  signum)
staticprivate

Definition at line 73 of file signalhandler.cpp.

References EventHandler::handleSignal(), and signalHandlers_.

Referenced by registerHandler().

SignalHandler * SignalHandler::instance ( void  )
static

Definition at line 38 of file signalhandler.cpp.

References instance_, and SignalHandler().

EventHandler * SignalHandler::registerHandler ( int  signum,
EventHandler eh 
)

Definition at line 47 of file signalhandler.cpp.

References dispatcher(), and signalHandlers_.

void SignalHandler::removeHandler ( int  signum)

Definition at line 67 of file signalhandler.cpp.

References signalHandlers_.

Member Data Documentation

SignalHandler * SignalHandler::instance_ = NULL
staticprivate

Definition at line 90 of file signalhandler.h.

Referenced by instance().

EventHandler * SignalHandler::signalHandlers_
staticprivate

Definition at line 100 of file signalhandler.h.

Referenced by dispatcher(), registerHandler(), and removeHandler().


The documentation for this class was generated from the following files: