Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

Tracer Class Reference

#include <Tracer.h>

List of all members.

Public Member Functions

 Tracer (const string &enter, bool print=true)
 ~Tracer ()

Static Public Member Functions

void init ()
void enter (const string &function, bool print=true)
void debug (const char *format,...)
void error (const char *error,...)
void warn (const char *warn,...)
void stat (const char *stat,...)
void debug (int level, const char *format,...)
void error (int level, const char *error,...)
void warn (int level, const char *warn,...)
void stat (int level, const char *stat,...)
template<class ttype> ttype & leave (ttype &rtn_value)
void leave ()
 Pops one item off the call stack.

int leave (int x)
void printTrace (bool state)
void printDebug (int state)
void printError (int state)
void printWarn (int state)
void printStatus (int state)
void setIndentSpaces (int num)


Constructor & Destructor Documentation

Tracer::Tracer const string &  enter,
bool  print = true
 

Tracer::~Tracer  ) 
 


Member Function Documentation

void Tracer::debug int  level,
const char *  format,
... 
[static]
 

prints text at the current indent level

Parameters:
txt - the debug text to print

void Tracer::debug const char *  format,
... 
[static]
 

prints text at the current indent level

Parameters:
txt - the debug text to print

void Tracer::enter const string &  function,
bool  print = true
[static]
 

enters a new level, printing the function name on the current level and then printing everything else 1 indent further in until leave is called

Parameters:
function - the function that you are entering

void Tracer::error int  level,
const char *  format,
... 
[static]
 

prints an error to std error

Parameters:
format - the format of the error message
arguments for the format

void Tracer::error const char *  format,
... 
[static]
 

prints an error to std error

Parameters:
format - the format of the error message
arguments for the format

void Tracer::init  )  [static]
 

int Tracer::leave int  x  )  [inline, static]
 

void Tracer::leave  )  [static]
 

Pops one item off the call stack.

template<class ttype>
ttype & Tracer::leave ttype &  rtn_value  )  [static]
 

leaves a level, printing the function name on the level it was called from and then decreasing the indent called

Parameters:
 

void Tracer::printDebug int  state  )  [inline, static]
 

void Tracer::printError int  state  )  [inline, static]
 

void Tracer::printStatus int  state  )  [inline, static]
 

void Tracer::printTrace bool  state  )  [inline, static]
 

void Tracer::printWarn int  state  )  [inline, static]
 

void Tracer::setIndentSpaces int  num  )  [inline, static]
 

void Tracer::stat int  level,
const char *  format,
... 
[static]
 

prints text at the current indent level

Parameters:
txt - the debug text to print

void Tracer::stat const char *  format,
... 
[static]
 

prints text at the current indent level

Parameters:
txt - the debug text to print

void Tracer::warn int  level,
const char *  warn,
... 
[static]
 

void Tracer::warn const char *  warn,
... 
[static]
 


The documentation for this class was generated from the following files:
Generated on Tue Jun 15 12:49:29 2004 for pexpr by doxygen 1.3.4