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.

00397     : m_fname (fn_), m_mask (mask_)
00398 {
00399     if (LOGGER->group_enabled ((ASSA::Group) m_mask)) {
00400         LOGGER->sign_on (m_fname);
00401         LOGGER->log_func (m_mask, FUNC_ENTRY);
00402     }
00403 }

ASSA::DiagnosticContext::~DiagnosticContext  )  [inline]
 

Definition at line 407 of file Logger.h.

References ASSA::FUNC_EXIT, LOGGER, and m_mask.

00408 {
00409     if (LOGGER->group_enabled ((ASSA::Group) m_mask)) {
00410         LOGGER->log_func (m_mask, FUNC_EXIT);
00411         LOGGER->sign_off ();
00412     }
00413 }

ASSA::DiagnosticContext::DiagnosticContext const DiagnosticContext  )  [private]
 


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().

u_long ASSA::DiagnosticContext::m_mask [private]
 

Definition at line 391 of file Logger.h.

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


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