ASSA::CFUNC_Handler Class Reference

CFUNC_Handler class. More...

#include <SigHandlersList.h>

Inheritance diagram for ASSA::CFUNC_Handler:

Inheritance graph
[legend]
Collaboration diagram for ASSA::CFUNC_Handler:

Collaboration graph
[legend]
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 44 of file SigHandlersList.h.


Constructor & Destructor Documentation

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

Definition at line 371 of file SigHandlersList.h.

References ASSA::SIGHAND, and trace_with_mask.

00372     : m_c_sig_hand (csigh_)
00373 {
00374     trace_with_mask("CFUNC_Handler::CFUNC_Handler", SIGHAND);
00375 }


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 379 of file SigHandlersList.h.

References m_c_sig_hand, ASSA::SIGHAND, and trace_with_mask.

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

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

Definition at line 50 of file SigHandlersList.h.

References m_c_sig_hand.

00050 { return m_c_sig_hand; }


Member Data Documentation

C_SIG_HANDLER ASSA::CFUNC_Handler::m_c_sig_hand [private]
 

Definition at line 53 of file SigHandlersList.h.

Referenced by handle_signal(), and handler().


The documentation for this class was generated from the following file:
Generated on Sun Aug 13 15:08:21 2006 for libassa by  doxygen 1.4.6