Inferno
0.2
|
#include <trace.hpp>
Classes | |
class | Descend |
Public Types | |
enum | Flags { FORCE = 1, DISABLE = 2, ABORT = 4 } |
Public Member Functions | |
Tracer (const char *f, int l, const char *fu, Flags fl=(Flags) 0, const char *c=0) | |
~Tracer () | |
Tracer & | operator() () |
Tracer & | operator() (const char *fmt,...) |
Tracer & | operator() (const string &s) |
Static Public Member Functions | |
static void | EndContinuation () |
static void | Enable (bool e) |
enable/disable tracing, only for top level funciton to call, overridden by flags | |
static bool | IsEnabled () |
enum Tracer::Flags |
Tracer::Tracer | ( | const char * | f, |
int | l, | ||
const char * | fu, | ||
Flags | fl = (Flags)0 , |
||
const char * | c = 0 |
||
) |
Definition at line 32 of file trace.cpp.
References ABORT, EndContinuation(), and Tracer::Descend::Indent().
Tracer::~Tracer | ( | ) |
Definition at line 51 of file trace.cpp.
References ABORT, EndContinuation(), and InfernoAbort().
void Tracer::Enable | ( | bool | e | ) | [static] |
void Tracer::EndContinuation | ( | ) | [static] |
Definition at line 97 of file trace.cpp.
Referenced by Tracer::Descend::Descend(), operator()(), Tracer(), and ~Tracer().
static bool Tracer::IsEnabled | ( | ) | [inline, static] |
Tracer & Tracer::operator() | ( | ) |
Definition at line 60 of file trace.cpp.
References DISABLE, EndContinuation(), FORCE, and Tracer::Descend::Indent().
Referenced by operator()().
Tracer & Tracer::operator() | ( | const char * | fmt, |
... | |||
) |
Definition at line 72 of file trace.cpp.
References DISABLE, FORCE, and Tracer::Descend::Indent().
Tracer & Tracer::operator() | ( | const string & | s | ) |
Definition at line 92 of file trace.cpp.
References operator()().