Inferno  0.2
Tracer Class Reference

#include <trace.hpp>

List of all members.

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 ()
Traceroperator() ()
Traceroperator() (const char *fmt,...)
Traceroperator() (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 ()

Detailed Description

Definition at line 25 of file trace.hpp.


Member Enumeration Documentation

Enumerator:
FORCE 
DISABLE 
ABORT 

Definition at line 28 of file trace.hpp.


Constructor & Destructor Documentation

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().

Definition at line 51 of file trace.cpp.

References ABORT, EndContinuation(), and InfernoAbort().


Member Function Documentation

void Tracer::Enable ( bool  e) [static]

enable/disable tracing, only for top level funciton to call, overridden by flags

Definition at line 106 of file trace.cpp.

Referenced by main().

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]

Definition at line 42 of file trace.hpp.

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()().


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