debug.hh File Reference
#include <cstdio>
#include <cstdarg>
#include <fstream>
#include <sstream>
#include "sot/core/api.hh"
Include dependency graph for debug.hh:
This graph shows which files directly or indirectly include this file:

Classes

class  dynamicgraph::sot::DebugTrace
 

Namespaces

 dynamicgraph
 
 dynamicgraph::sot
 This is the namespace for a subset of helperd classes related to the implementation of the Stack-Of-Tasks.
 

Macros

#define VP_DEBUG_MODE   0
 
#define VP_TEMPLATE_DEBUG_MODE   0
 VP_DEBUG_MODE. More...
 
#define SOT_COMMON_TRACES
 VP_TEMPLATE_DEBUG_MODE. More...
 
#define sotPREERROR
 
#define sotDEBUG(level)   if( 1 ) ; else ::dynamicgraph::sot::__null_stream()
 
#define sotDEBUGMUTE(level)   if( 1 ) ; else ::dynamicgraph::sot::__null_stream()
 
#define sotERROR   sotERRORFLOW.outputbuffer << sotPREERROR
 
#define sotTDEBUG(level)   if( 1 ) ; else ::dynamicgraph::sot::__null_stream()
 
#define sotDEBUG_ENABLE(level)   false
 
#define sotTDEBUG_ENABLE(level)   false
 
#define sotDEBUGIN(level)   sotDEBUG(level) << "# In {" << std::endl
 
#define sotDEBUGOUT(level)   sotDEBUG(level) << "# Out }" << std::endl
 
#define sotDEBUGINOUT(level)   sotDEBUG(level) << "# In/Out { }" << std::endl
 
#define sotTDEBUGIN(level)   sotTDEBUG(level) << "# In {" << std::endl
 
#define sotTDEBUGOUT(level)   sotTDEBUG(level) << "# Out }" << std::endl
 
#define sotTDEBUGINOUT(level)   sotTDEBUG(level) << "# In/Out { }" << std::endl
 

Functions

void dynamicgraph::sot::sotDEBUGF (const int, const char *,...)
 
void dynamicgraph::sot::sotDEBUGF (const char *,...)
 
void dynamicgraph::sot::sotERRORF (const int, const char *,...)
 
void dynamicgraph::sot::sotERRORF (const char *,...)
 
std::ostream & dynamicgraph::sot::__null_stream ()
 
void dynamicgraph::sot::sotTDEBUGF (const int, const char *,...)
 
void dynamicgraph::sot::sotTDEBUGF (const char *,...)
 

Variables

SOT_CORE_EXPORT DebugTrace dynamicgraph::sot::sotDEBUGFLOW
 
SOT_CORE_EXPORT DebugTrace dynamicgraph::sot::sotERRORFLOW
 

Macro Definition Documentation

◆ SOT_COMMON_TRACES

#define SOT_COMMON_TRACES
Value:
do { \
va_list arg; \
va_start(arg,format); \
vsnprintf( charbuffer,SIZE,format,arg ); \
va_end(arg); \
outputbuffer << tmpbuffer.str() << charbuffer <<std::endl; \
} while(0)

VP_TEMPLATE_DEBUG_MODE.

Referenced by dynamicgraph::sot::DebugTrace::trace(), and dynamicgraph::sot::DebugTrace::traceTemplate().

◆ sotDEBUG

#define sotDEBUG (   level)    if( 1 ) ; else ::dynamicgraph::sot::__null_stream()

◆ sotDEBUG_ENABLE

#define sotDEBUG_ENABLE (   level)    false

◆ sotDEBUGIN

#define sotDEBUGIN (   level)    sotDEBUG(level) << "# In {" << std::endl

◆ sotDEBUGINOUT

#define sotDEBUGINOUT (   level)    sotDEBUG(level) << "# In/Out { }" << std::endl

◆ sotDEBUGMUTE

#define sotDEBUGMUTE (   level)    if( 1 ) ; else ::dynamicgraph::sot::__null_stream()

◆ sotDEBUGOUT

#define sotDEBUGOUT (   level)    sotDEBUG(level) << "# Out }" << std::endl

◆ sotERROR

#define sotERROR   sotERRORFLOW.outputbuffer << sotPREERROR

◆ sotPREERROR

#define sotPREERROR
Value:
"\t!! "<<__FILE__ << ": " <<__FUNCTION__ \
<< "(#" << __LINE__ << ") :"

◆ sotTDEBUG

#define sotTDEBUG (   level)    if( 1 ) ; else ::dynamicgraph::sot::__null_stream()

◆ sotTDEBUG_ENABLE

#define sotTDEBUG_ENABLE (   level)    false

◆ sotTDEBUGIN

#define sotTDEBUGIN (   level)    sotTDEBUG(level) << "# In {" << std::endl

◆ sotTDEBUGINOUT

#define sotTDEBUGINOUT (   level)    sotTDEBUG(level) << "# In/Out { }" << std::endl

◆ sotTDEBUGOUT

#define sotTDEBUGOUT (   level)    sotTDEBUG(level) << "# Out }" << std::endl

◆ VP_DEBUG_MODE

#define VP_DEBUG_MODE   0

◆ VP_TEMPLATE_DEBUG_MODE

#define VP_TEMPLATE_DEBUG_MODE   0

VP_DEBUG_MODE.