libassa 3.5.0
Public Member Functions | Private Attributes
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 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.

    : m_c_sig_hand (csigh_)
{
    trace_with_mask("CFUNC_Handler::CFUNC_Handler", SIGHAND);
}

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.

{
    trace_with_mask("CFUNC_Handler::handle_signal", SIGHAND);

    if (m_c_sig_hand) {
        (*m_c_sig_hand)(signum_);
    }
    return 1;
}
C_SIG_HANDLER ASSA::CFUNC_Handler::handler ( ) [inline]

Definition at line 50 of file SigHandlersList.h.

References m_c_sig_hand.

Referenced by ASSA::SigHandlers::remove().

{ return m_c_sig_hand; }

Member Data Documentation

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines