libassa 3.5.1
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ASSA::DiagnosticContext Class Reference

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

#include <Logger.h>

Public Member Functions

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

Private Member Functions

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

Private Attributes

const charm_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

◆ DiagnosticContext() [1/2]

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

Definition at line 395 of file Logger.h.

397 : m_fname (fn_), m_mask (mask_)
398{
399 if (LOGGER->group_enabled ((ASSA::Group) m_mask)) {
400 LOGGER->sign_on (m_fname);
401 LOGGER->log_func (m_mask, FUNC_ENTRY);
402 }
403}
#define LOGGER
A shortcut to locate a singleton object of class Logger.
Definition Logger.h:136
const char * m_fname
Definition Logger.h:390
@ FUNC_ENTRY
Definition LogMask.h:69
Group
Definition LogMask.h:25

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

◆ ~DiagnosticContext()

ASSA::DiagnosticContext::~DiagnosticContext ( )
inline

Definition at line 406 of file Logger.h.

408{
409 if (LOGGER->group_enabled ((ASSA::Group) m_mask)) {
410 LOGGER->log_func (m_mask, FUNC_EXIT);
411 LOGGER->sign_off ();
412 }
413}
@ FUNC_EXIT
Definition LogMask.h:70

References ASSA::FUNC_EXIT, LOGGER, and m_mask.

◆ DiagnosticContext() [2/2]

ASSA::DiagnosticContext::DiagnosticContext ( const DiagnosticContext )
private

Member Function Documentation

◆ operator=()

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

Member Data Documentation

◆ m_fname

const char* ASSA::DiagnosticContext::m_fname
private

Definition at line 390 of file Logger.h.

Referenced by DiagnosticContext().

◆ m_mask

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: