debug.hh File Reference
#include <cstdio>
#include <cstdarg>
#include <iostream>
#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

namespace  dynamicgraph
namespace  dynamicgraph::sot

Defines

#define VP_DEBUG_MODE   0
#define VP_TEMPLATE_DEBUG_MODE   0
 VP_DEBUG_MODE.
#define SOT_COMMON_TRACES
 VP_TEMPLATE_DEBUG_MODE.
#define sotPREERROR
#define sotDEBUG(level)   if( 1 ) ; else std::cout
#define sotDEBUGMUTE(level)   if( 1 ) ; else std::cout
#define sotERROR   sotERRORFLOW.outputbuffer << sotPREERROR
#define sotTDEBUG(level)   if( 1 ) ; else std::cout
#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 *,...)
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

Define Documentation

#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().

#define sotDEBUG (   level)    if( 1 ) ; else std::cout
#define sotDEBUG_ENABLE (   level)    false
#define sotDEBUGIN (   level)    sotDEBUG(level) << "# In {" << std::endl
#define sotDEBUGINOUT (   level)    sotDEBUG(level) << "# In/Out { }" << std::endl
#define sotDEBUGMUTE (   level)    if( 1 ) ; else std::cout
#define sotDEBUGOUT (   level)    sotDEBUG(level) << "# Out }" << std::endl
#define sotERROR   sotERRORFLOW.outputbuffer << sotPREERROR
#define sotPREERROR
Value:
"\t!! "<<__FILE__ << ": " <<__FUNCTION__  \
  << "(#" << __LINE__ << ") :"
#define sotTDEBUG (   level)    if( 1 ) ; else std::cout
#define sotTDEBUG_ENABLE (   level)    false
#define sotTDEBUGIN (   level)    sotTDEBUG(level) << "# In {" << std::endl
#define sotTDEBUGINOUT (   level)    sotTDEBUG(level) << "# In/Out { }" << std::endl
#define sotTDEBUGOUT (   level)    sotTDEBUG(level) << "# Out }" << std::endl
#define VP_DEBUG_MODE   0
#define VP_TEMPLATE_DEBUG_MODE   0

VP_DEBUG_MODE.