#include <Tracer.h>
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) |
|
|
|
|
|
prints text at the current indent level
|
|
prints text at the current indent level
|
|
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
|
|
prints an error to std error
|
|
prints an error to std error
|
|
|
|
|
|
Pops one item off the call stack.
|
|
leaves a level, printing the function name on the level it was called from and then decreasing the indent called
|
|
|
|
|
|
|
|
|
|
|
|
|
|
prints text at the current indent level
|
|
prints text at the current indent level
|
|
|
|
|