Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
dynamicgraph::DebugTrace Class Reference

Logging class. More...

#include <debug.h>

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

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

Static Public Attributes

static const char * DEBUG_FILENAME_DEFAULT
 
static const int SIZE = 512
 

Detailed Description

Logging class.

This class should never be used directly, please use the debugging macro instead.

Definition at line 40 of file debug.h.

Constructor & Destructor Documentation

◆ DebugTrace()

dynamicgraph::DebugTrace::DebugTrace ( std::ostream &  os)
inline

Definition at line 50 of file debug.h.

Member Function Documentation

◆ closeFile()

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

Definition at line 54 of file debug.cpp.

◆ openFile()

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

Definition at line 48 of file debug.cpp.

◆ pre() [1/2]

DebugTrace& dynamicgraph::DebugTrace::pre ( const std::ostream &  )
inline

Definition at line 79 of file debug.h.

◆ pre() [2/2]

DebugTrace& dynamicgraph::DebugTrace::pre ( const std::ostream &  ,
int  level 
)
inline

Definition at line 81 of file debug.h.

◆ trace() [1/3]

void dynamicgraph::DebugTrace::trace ( const char *  format,
  ... 
)
inline

Definition at line 57 of file debug.h.

◆ trace() [2/3]

void dynamicgraph::DebugTrace::trace ( const int  level,
const char *  format,
  ... 
)
inline

Definition at line 52 of file debug.h.

◆ trace() [3/3]

void dynamicgraph::DebugTrace::trace ( const int  level = -1)
inline

Definition at line 62 of file debug.h.

◆ traceTemplate() [1/2]

void dynamicgraph::DebugTrace::traceTemplate ( const char *  format,
  ... 
)
inline

Definition at line 74 of file debug.h.

◆ traceTemplate() [2/2]

void dynamicgraph::DebugTrace::traceTemplate ( const int  level,
const char *  format,
  ... 
)
inline

Definition at line 69 of file debug.h.

Member Data Documentation

◆ charbuffer

char dynamicgraph::DebugTrace::charbuffer[SIZE+1]

Definition at line 46 of file debug.h.

◆ DEBUG_FILENAME_DEFAULT

const char * DebugTrace::DEBUG_FILENAME_DEFAULT
static
Initial value:
=
"/tmp/dynamic-graph-traces.txt"

Definition at line 86 of file debug.h.

◆ outputbuffer

std::ostream& dynamicgraph::DebugTrace::outputbuffer

Definition at line 45 of file debug.h.

◆ SIZE

const int dynamicgraph::DebugTrace::SIZE = 512
static

Definition at line 42 of file debug.h.

◆ tmpbuffer

std::stringstream dynamicgraph::DebugTrace::tmpbuffer

Definition at line 44 of file debug.h.

◆ traceLevel

int dynamicgraph::DebugTrace::traceLevel

Definition at line 47 of file debug.h.

◆ traceLevelTemplate

int dynamicgraph::DebugTrace::traceLevelTemplate

Definition at line 48 of file debug.h.


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


dynamic-graph
Author(s): Nicolas Mansard, Olivier Stasse
autogenerated on Fri Aug 2 2024 08:36:39