Classes | Namespaces | Macros | Functions | Variables
debug.hh File Reference
#include <cstdarg>
#include <cstdio>
#include <fstream>
#include <sstream>
#include "sot/core/api.hh"
#include "sot/core/fwd.hh"
Include dependency graph for debug.hh:

Go to the source code of this file.

Classes

class  dynamicgraph::sot::DebugTrace
 

Namespaces

 dynamicgraph
 
 dynamicgraph::sot
 

Macros

#define SOT_COMMON_TRACES
 VP_TEMPLATE_DEBUG_MODE. More...
 
#define sotDEBUG(level)
 
#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)
 
#define sotDEBUGOUT(level)   sotDEBUG(level) << "# Out }" << std::endl
 
#define sotERROR   sotERRORFLOW.outputbuffer << sotPREERROR
 
#define sotPREERROR   "\t!! " << __FILE__ << ": " << __FUNCTION__ << "(#" << __LINE__ << ") :"
 
#define sotTDEBUG(level)
 
#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. More...
 

Functions

std::ostream & dynamicgraph::sot::__null_stream ()
 
void dynamicgraph::sot::sotDEBUGF (const char *,...)
 
void dynamicgraph::sot::sotDEBUGF (const size_type, const char *,...)
 
void dynamicgraph::sot::sotERRORF (const char *,...)
 
void dynamicgraph::sot::sotERRORF (const size_type, const char *,...)
 
void dynamicgraph::sot::sotTDEBUGF (const char *,...)
 
void dynamicgraph::sot::sotTDEBUGF (const size_type, 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.

Definition at line 28 of file debug.hh.

◆ sotDEBUG

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

Definition at line 168 of file debug.hh.

◆ sotDEBUG_ENABLE

#define sotDEBUG_ENABLE (   level)    false

Definition at line 209 of file debug.hh.

◆ sotDEBUGIN

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

Definition at line 214 of file debug.hh.

◆ sotDEBUGINOUT

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

Definition at line 216 of file debug.hh.

◆ sotDEBUGMUTE

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

Definition at line 173 of file debug.hh.

◆ sotDEBUGOUT

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

Definition at line 215 of file debug.hh.

◆ sotERROR

#define sotERROR   sotERRORFLOW.outputbuffer << sotPREERROR

Definition at line 178 of file debug.hh.

◆ sotPREERROR

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

Definition at line 166 of file debug.hh.

◆ sotTDEBUG

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

Definition at line 196 of file debug.hh.

◆ sotTDEBUG_ENABLE

#define sotTDEBUG_ENABLE (   level)    false

Definition at line 210 of file debug.hh.

◆ sotTDEBUGIN

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

Definition at line 218 of file debug.hh.

◆ sotTDEBUGINOUT

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

Definition at line 220 of file debug.hh.

◆ sotTDEBUGOUT

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

Definition at line 219 of file debug.hh.

◆ VP_DEBUG_MODE

#define VP_DEBUG_MODE   0

Definition at line 21 of file debug.hh.

◆ VP_TEMPLATE_DEBUG_MODE

#define VP_TEMPLATE_DEBUG_MODE   0

VP_DEBUG_MODE.

Definition at line 25 of file debug.hh.



sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Tue Oct 24 2023 02:26:32