ASSA::CFUNC_Handler Class Reference

CFUNC_Handler class. More...

#include <SigHandlersList.h>

Inheritance diagram for ASSA::CFUNC_Handler:

ASSA::EventHandler List of all members.

Public Member Functions

 CFUNC_Handler (C_SIG_HANDLER csigh_)
int handle_signal (int signum_)
 Signal handler callback.
C_SIG_HANDLER handler ()

Private Attributes

C_SIG_HANDLER m_c_sig_hand

Detailed Description

CFUNC_Handler class.

CFUNC_Handler is a wrapper around C signal handler function. It wraps C signal handler function into EventHandler interface.

Definition at line 42 of file SigHandlersList.h.


Constructor & Destructor Documentation

ASSA::CFUNC_Handler::CFUNC_Handler C_SIG_HANDLER  csigh_  )  [inline]
 

Definition at line 369 of file SigHandlersList.h.

References ASSA::SIGHAND, and trace_with_mask.

00370     : m_c_sig_hand (csigh_)
00371 {
00372     trace_with_mask("CFUNC_Handler::CFUNC_Handler", SIGHAND);
00373 }


Member Function Documentation

int ASSA::CFUNC_Handler::handle_signal int  signum_  )  [inline, virtual]
 

Signal handler callback.

Returns:
0 on success, -1 on error

Reimplemented from ASSA::EventHandler.

Definition at line 377 of file SigHandlersList.h.

References m_c_sig_hand, ASSA::SIGHAND, and trace_with_mask.

00378 {
00379     trace_with_mask("CFUNC_Handler::handle_signal", SIGHAND);
00380 
00381     if (m_c_sig_hand) {
00382         (*m_c_sig_hand)(signum_);
00383     }
00384     return 1;
00385 }

C_SIG_HANDLER ASSA::CFUNC_Handler::handler  )  [inline]
 

Definition at line 48 of file SigHandlersList.h.

References m_c_sig_hand.

00048 { return m_c_sig_hand; }


Member Data Documentation

C_SIG_HANDLER ASSA::CFUNC_Handler::m_c_sig_hand [private]
 

Definition at line 51 of file SigHandlersList.h.

Referenced by handle_signal(), and handler().


The documentation for this class was generated from the following file:
Generated on Mon Dec 19 15:55:17 2005 for libassa by  doxygen 1.4.5