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

◆ sotDebugTrace()

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

Member Function Documentation

◆ closeFile()

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

References soth::debugfile.

◆ openFile()

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

References soth::debugfile.

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

◆ operator std::ostream &()

soth::sotDebugTrace::operator std::ostream & ( )
inline

◆ pre() [1/2]

sotDebugTrace& soth::sotDebugTrace::pre ( const std::ostream &  )
inline

◆ pre() [2/2]

sotDebugTrace& soth::sotDebugTrace::pre ( const std::ostream &  ,
int  level 
)
inline

◆ trace() [1/3]

void soth::sotDebugTrace::trace ( const int  level,
const char *  format,
  ... 
)
inline

References SOT_COMMON_TRACES.

◆ trace() [2/3]

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

References SOT_COMMON_TRACES.

◆ trace() [3/3]

void soth::sotDebugTrace::trace ( const int  level = -1)
inline

◆ traceTemplate() [1/2]

void soth::sotDebugTrace::traceTemplate ( const int  level,
const char *  format,
  ... 
)
inline

References SOT_COMMON_TRACES.

◆ traceTemplate() [2/2]

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

References SOT_COMMON_TRACES.

Member Data Documentation

◆ charbuffer

char soth::sotDebugTrace::charbuffer[SIZE+1]

◆ DEBUG_FILENAME_DEFAULT

const char * soth::sotDebugTrace::DEBUG_FILENAME_DEFAULT = "/tmp/traces.txt"
static

◆ debugPrior

int soth::sotDebugTrace::debugPrior

◆ outputbuffer

std::ostream& soth::sotDebugTrace::outputbuffer

◆ SIZE

const int soth::sotDebugTrace::SIZE = 512
static

◆ tmpbuffer

std::stringstream soth::sotDebugTrace::tmpbuffer

◆ traceLevel

int soth::sotDebugTrace::traceLevel

◆ traceLevelTemplate

int soth::sotDebugTrace::traceLevelTemplate

◆ voidbuffer

std::ofstream soth::sotDebugTrace::voidbuffer