Zero  0.1.0
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
w_debug Class Reference

An ErrLog used for tracing (configure –enable-trace) More...

#include <w_debug.h>

Public Member Functions

 w_debug (const char *n, const char *f)
 
 ~w_debug ()
 
int flag_on (const char *fn, const char *file)
 
const char * flags ()
 
void setflags (const char *newflags)
 
void memdump (void *p, int len)
 
int trace_level ()
 

Private Types

enum  { _all = 0x1, _none = 0x2 }
 

Private Member Functions

int all (void)
 
int none (void)
 

Private Attributes

char * _flags
 
unsigned int mask
 
int _trace_level
 

Detailed Description

An ErrLog used for tracing (configure –enable-trace)

For tracing to be used, you must set the environment variable DEBUG_FLAGS to a string containing the names of the files you want traced, and

DEBUG_FILE to the name of the output file to which the output should be sent. If DEBUG_FILE is not set, the output goes to stderr.

Member Enumeration Documentation

§ anonymous enum

anonymous enum
private
Enumerator
_all 
_none 

Constructor & Destructor Documentation

§ w_debug()

w_debug::w_debug ( const char *  n,
const char *  f 
)

§ ~w_debug()

w_debug::~w_debug ( )

Member Function Documentation

§ all()

int w_debug::all ( void  )
inlineprivate

§ flag_on()

int w_debug::flag_on ( const char *  fn,
const char *  file 
)

§ flags()

const char* w_debug::flags ( )
inline

§ memdump()

void w_debug::memdump ( void *  p,
int  len 
)

§ none()

int w_debug::none ( void  )
inlineprivate

§ setflags()

void w_debug::setflags ( const char *  newflags)

§ trace_level()

int w_debug::trace_level ( )
inline

Member Data Documentation

§ _flags

char* w_debug::_flags
private

§ _trace_level

int w_debug::_trace_level
private

§ mask

unsigned int w_debug::mask
private

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