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

Classes

class  dynamicgraph::DebugTrace
 Logging class. More...
 

Namespaces

 dynamicgraph
 This is the namespace where every object and class of this library is located.
 

Macros

#define VP_DEBUG_MODE   0
 
#define VP_TEMPLATE_DEBUG_MODE   0
 VP_DEBUG_MODE. More...
 
#define DG_COMMON_TRACES
 VP_TEMPLATE_DEBUG_MODE. More...
 
#define dgPREERROR   "\t!! " << __FILE__ << ": " << __FUNCTION__ << "(#" << __LINE__ << ") :"
 
#define dgDEBUG(level)
 
#define dgDEBUGMUTE
 
#define dgERROR   dgERRORFLOW.outputbuffer << dgPREERROR
 
#define dgTDEBUG(level)
 
#define dgDEBUG_ENABLE(level)   false
 
#define dgTDEBUG_ENABLE(level)   false
 
#define dgDEBUGIN(level)   dgDEBUG(level) << "# In {" << std::endl
 VP_DEBUG. More...
 
#define dgDEBUGOUT(level)   dgDEBUG(level) << "# Out }" << std::endl
 
#define dgDEBUGINOUT(level)   dgDEBUG(level) << "# In/Out { }" << std::endl
 
#define dgTDEBUGIN(level)   dgTDEBUG(level) << "# In {" << std::endl
 
#define dgTDEBUGOUT(level)   dgTDEBUG(level) << "# Out }" << std::endl
 
#define dgTDEBUGINOUT(level)   dgTDEBUG(level) << "# In/Out { }" << std::endl
 

Functions

void dgDEBUGF (const int, const char *,...)
 
void dgDEBUGF (const char *,...)
 
void dgERRORF (const int, const char *,...)
 
void dgERRORF (const char *,...)
 
std::ostream & dynamicgraph::__null_stream ()
 
void dgTDEBUGF (const int, const char *,...)
 
void dgTDEBUGF (const char *,...)
 

Variables

DYNAMIC_GRAPH_DLLAPI DebugTrace dynamicgraph::dgDEBUGFLOW
 
DYNAMIC_GRAPH_DLLAPI DebugTrace dynamicgraph::dgERRORFLOW
 

Macro Definition Documentation

◆ DG_COMMON_TRACES

#define DG_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::DebugTrace::trace(), and dynamicgraph::DebugTrace::traceTemplate().

◆ dgDEBUG

#define dgDEBUG (   level)
Value:
if (1) \
; \
std::ostream & __null_stream()
Definition: debug.h:180

◆ dgDEBUG_ENABLE

#define dgDEBUG_ENABLE (   level)    false

◆ dgDEBUGIN

#define dgDEBUGIN (   level)    dgDEBUG(level) << "# In {" << std::endl

VP_DEBUG.

◆ dgDEBUGINOUT

#define dgDEBUGINOUT (   level)    dgDEBUG(level) << "# In/Out { }" << std::endl

◆ dgDEBUGMUTE

#define dgDEBUGMUTE
Value:
(level) if (1); \
std::ostream & __null_stream()
Definition: debug.h:180

◆ dgDEBUGOUT

#define dgDEBUGOUT (   level)    dgDEBUG(level) << "# Out }" << std::endl

◆ dgERROR

#define dgERROR   dgERRORFLOW.outputbuffer << dgPREERROR

◆ dgPREERROR

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

◆ dgTDEBUG

#define dgTDEBUG (   level)

◆ dgTDEBUG_ENABLE

#define dgTDEBUG_ENABLE (   level)    false

◆ dgTDEBUGIN

◆ dgTDEBUGINOUT

#define dgTDEBUGINOUT (   level)    dgTDEBUG(level) << "# In/Out { }" << std::endl

◆ dgTDEBUGOUT

◆ VP_DEBUG_MODE

#define VP_DEBUG_MODE   0

◆ VP_TEMPLATE_DEBUG_MODE

#define VP_TEMPLATE_DEBUG_MODE   0

VP_DEBUG_MODE.

Function Documentation

◆ dgDEBUGF() [1/2]

void dgDEBUGF ( const int  ,
const char *  ,
  ... 
)
inline

◆ dgDEBUGF() [2/2]

void dgDEBUGF ( const char *  ,
  ... 
)
inline

◆ dgERRORF() [1/2]

void dgERRORF ( const int  ,
const char *  ,
  ... 
)
inline

◆ dgERRORF() [2/2]

void dgERRORF ( const char *  ,
  ... 
)
inline

◆ dgTDEBUGF() [1/2]

void dgTDEBUGF ( const int  ,
const char *  ,
  ... 
)
inline

◆ dgTDEBUGF() [2/2]

void dgTDEBUGF ( const char *  ,
  ... 
)
inline