soth::sotDebugTrace Class Reference

#include <debug.hpp>

Collaboration diagram for soth::sotDebugTrace:
[legend]

List of all members.

Public Member Functions

 sotDebugTrace (std::ostream &os)
void trace (const int level, const char *format,...)
void trace (const char *format,...)
void trace (const int level=-1)
void traceTemplate (const int level, const char *format,...)
void traceTemplate (const char *format,...)
sotDebugTracepre (const std::ostream &)
sotDebugTracepre (const std::ostream &, int level)
 operator std::ostream & ()

Static Public Member Functions

static void openFile (const char *filename=DEBUG_FILENAME_DEFAULT)
static void closeFile (const char *filename=DEBUG_FILENAME_DEFAULT)

Public Attributes

std::stringstream tmpbuffer
std::ostream & outputbuffer
std::ofstream voidbuffer
char charbuffer [SIZE+1]
int traceLevel
int traceLevelTemplate
int debugPrior

Static Public Attributes

static const int SIZE = 512
static const char * DEBUG_FILENAME_DEFAULT = "/tmp/traces.txt"

Constructor & Destructor Documentation

soth::sotDebugTrace::sotDebugTrace ( std::ostream &  os) [inline]

Member Function Documentation

void soth::sotDebugTrace::closeFile ( const char *  filename = DEBUG_FILENAME_DEFAULT) [static]

References soth::debugfile.

void soth::sotDebugTrace::openFile ( const char *  filename = DEBUG_FILENAME_DEFAULT) [static]

References soth::debugfile.

Referenced by soth::HCOD::debugOnce().

soth::sotDebugTrace::operator std::ostream & ( ) [inline]
sotDebugTrace& soth::sotDebugTrace::pre ( const std::ostream &  ) [inline]
sotDebugTrace& soth::sotDebugTrace::pre ( const std::ostream &  ,
int  level 
) [inline]
void soth::sotDebugTrace::trace ( const int  level,
const char *  format,
  ... 
) [inline]

References SOT_COMMON_TRACES.

void soth::sotDebugTrace::trace ( const char *  format,
  ... 
) [inline]

References SOT_COMMON_TRACES.

void soth::sotDebugTrace::trace ( const int  level = -1) [inline]
void soth::sotDebugTrace::traceTemplate ( const int  level,
const char *  format,
  ... 
) [inline]

References SOT_COMMON_TRACES.

void soth::sotDebugTrace::traceTemplate ( const char *  format,
  ... 
) [inline]

References SOT_COMMON_TRACES.


Member Data Documentation

const char * soth::sotDebugTrace::DEBUG_FILENAME_DEFAULT = "/tmp/traces.txt" [static]
const int soth::sotDebugTrace::SIZE = 512 [static]
std::stringstream soth::sotDebugTrace::tmpbuffer