libassa  3.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
ASSA::DiagnosticContext Class Reference

Class DiagnosticContext tracks who deep a function is in the calling stack. More...

#include <Logger.h>

List of all members.

Public Member Functions

 DiagnosticContext (const char *fn_, u_long mask_=TRACE)
 ~DiagnosticContext ()

Private Member Functions

 DiagnosticContext (const DiagnosticContext &)
DiagnosticContextoperator= (const DiagnosticContext &)

Private Attributes

const char * m_fname
u_long m_mask

Detailed Description

Class DiagnosticContext tracks who deep a function is in the calling stack.

Definition at line 379 of file Logger.h.


Constructor & Destructor Documentation

ASSA::DiagnosticContext::DiagnosticContext ( const char *  fn_,
u_long  mask_ = TRACE 
) [inline]

Definition at line 396 of file Logger.h.

References ASSA::FUNC_ENTRY, LOGGER, m_fname, and m_mask.

    : m_fname (fn_), m_mask (mask_)
{
    if (LOGGER->group_enabled ((ASSA::Group) m_mask)) {
        LOGGER->sign_on (m_fname);
        LOGGER->log_func (m_mask, FUNC_ENTRY);
    }
}

Definition at line 407 of file Logger.h.

References ASSA::FUNC_EXIT, LOGGER, and m_mask.

{
    if (LOGGER->group_enabled ((ASSA::Group) m_mask)) {
        LOGGER->log_func (m_mask, FUNC_EXIT);
        LOGGER->sign_off ();
    }
}

Member Function Documentation

DiagnosticContext& ASSA::DiagnosticContext::operator= ( const DiagnosticContext ) [private]

Member Data Documentation

const char* ASSA::DiagnosticContext::m_fname [private]

Definition at line 390 of file Logger.h.

Referenced by DiagnosticContext().

Definition at line 391 of file Logger.h.

Referenced by DiagnosticContext(), and ~DiagnosticContext().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines