All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
soth::sotDebugTrace Class Reference

#include <debug.hpp>

Collaboration diagram for soth::sotDebugTrace:
[legend]

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

char soth::sotDebugTrace::charbuffer[SIZE+1]
const char * soth::sotDebugTrace::DEBUG_FILENAME_DEFAULT = "/tmp/traces.txt"
static
int soth::sotDebugTrace::debugPrior
std::ostream& soth::sotDebugTrace::outputbuffer
const int soth::sotDebugTrace::SIZE = 512
static
std::stringstream soth::sotDebugTrace::tmpbuffer
int soth::sotDebugTrace::traceLevel
int soth::sotDebugTrace::traceLevelTemplate
std::ofstream soth::sotDebugTrace::voidbuffer