Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Trace Class Reference

RAII helper for function entry/exit tracing. More...

#include <trace.H>

Public Member Functions

 Trace (char *_file, int _line, char *_name)
 
 ~Trace ()
 Destructor - prints LEAVE message.
 

Private Attributes

char * file
 
int line
 
char * name
 

Detailed Description

RAII helper for function entry/exit tracing.

Prints an "ENTER" message on construction and "LEAVE" on destruction, providing automatic function tracing without explicit logging calls. *

Definition at line 93 of file trace.H.

Constructor & Destructor Documentation

◆ Trace()

Trace::Trace ( char *  _file,
int  _line,
char *  _name 
)
inline

Definition at line 102 of file trace.H.

References file, line, and name.

◆ ~Trace()

Trace::~Trace ( )
inline

Destructor - prints LEAVE message.

Definition at line 109 of file trace.H.

References name.

Member Data Documentation

◆ file

char* Trace::file
private

Definition at line 95 of file trace.H.

Referenced by Trace().

◆ line

int Trace::line
private

Definition at line 96 of file trace.H.

Referenced by Trace().

◆ name

char* Trace::name
private

Definition at line 98 of file trace.H.

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


The documentation for this class was generated from the following file: