CPN
Computational Process Networks
Public Member Functions | Public Attributes | List of all members
ScopeTrace Struct Reference

#include <Logger.h>

+ Collaboration diagram for ScopeTrace:

Public Member Functions

 ScopeTrace (Logger &l, const char *fn, unsigned ln)
 
 ~ScopeTrace ()
 

Public Attributes

Loggerlogger
 
const char * fname
 
unsigned line
 

Detailed Description

Definition at line 129 of file Logger.h.

Constructor & Destructor Documentation

ScopeTrace::ScopeTrace ( Logger l,
const char *  fn,
unsigned  ln 
)
inline

Definition at line 130 of file Logger.h.

References fname, line, logger, and Logger::Trace().

131  : logger(l), fname(fn), line(ln)
132  {
133  logger.Trace("Enter %s:%u", fname, line);
134  }
void Trace(const char *fmt,...)
Definition: Logger.cc:195
unsigned line
Definition: Logger.h:140
const char * fname
Definition: Logger.h:139
Logger & logger
Definition: Logger.h:138

+ Here is the call graph for this function:

ScopeTrace::~ScopeTrace ( )
inline

Definition at line 135 of file Logger.h.

References fname, line, logger, and Logger::Trace().

135  {
136  logger.Trace("Exit %s:%u", fname, line);
137  }
void Trace(const char *fmt,...)
Definition: Logger.cc:195
unsigned line
Definition: Logger.h:140
const char * fname
Definition: Logger.h:139
Logger & logger
Definition: Logger.h:138

+ Here is the call graph for this function:

Member Data Documentation

const char* ScopeTrace::fname

Definition at line 139 of file Logger.h.

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

unsigned ScopeTrace::line

Definition at line 140 of file Logger.h.

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

Logger& ScopeTrace::logger

Definition at line 138 of file Logger.h.

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


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