PGROUTING  2.5
SIGINT_Handler Class Reference

#include "signalhandler.h"

Inheritance diagram for SIGINT_Handler:
Collaboration diagram for SIGINT_Handler:

Public Member Functions

 SIGINT_Handler (void)
 
sig_atomic_t gracefulQuit (void)
 
virtual void handleSignal (int signum)
 

Private Attributes

sig_atomic_t graceful_quit_
 

Detailed Description

Definition at line 108 of file signalhandler.h.

Constructor & Destructor Documentation

SIGINT_Handler::SIGINT_Handler ( void  )
inline

Definition at line 110 of file signalhandler.h.

110 : graceful_quit_(0) {}
sig_atomic_t graceful_quit_

Member Function Documentation

sig_atomic_t SIGINT_Handler::gracefulQuit ( void  )
inline

Definition at line 118 of file signalhandler.h.

118 { return this->graceful_quit_;}
sig_atomic_t graceful_quit_
virtual void SIGINT_Handler::handleSignal ( int  signum)
inlinevirtual

Implements EventHandler.

Definition at line 113 of file signalhandler.h.

113  {
114  if (signum == SIGINT) this->graceful_quit_ = 1;
115  }
sig_atomic_t graceful_quit_

Member Data Documentation

sig_atomic_t SIGINT_Handler::graceful_quit_
private

Definition at line 121 of file signalhandler.h.


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