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

Go to the source code of this file.

Classes

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

Namespaces

 dynamicgraph
 

Macros

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

Functions

std::ostream & dynamicgraph::__null_stream ()
 
void dgDEBUGF (const char *,...)
 
void dgDEBUGF (const int, const char *,...)
 
void dgERRORF (const char *,...)
 
void dgERRORF (const int, const char *,...)
 
void dgTDEBUGF (const char *,...)
 
void dgTDEBUGF (const int, 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.

Definition at line 24 of file debug.h.

◆ dgDEBUG

#define dgDEBUG (   level)
Value:

Definition at line 157 of file debug.h.

◆ dgDEBUG_ENABLE

#define dgDEBUG_ENABLE (   level)    false

Definition at line 197 of file debug.h.

◆ dgDEBUGIN

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

VP_DEBUG.

Definition at line 202 of file debug.h.

◆ dgDEBUGINOUT

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

Definition at line 206 of file debug.h.

◆ dgDEBUGMUTE

#define dgDEBUGMUTE
Value:

Definition at line 163 of file debug.h.

◆ dgDEBUGOUT

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

Definition at line 204 of file debug.h.

◆ dgERROR

#define dgERROR   dgERRORFLOW.outputbuffer << dgPREERROR

Definition at line 167 of file debug.h.

◆ dgPREERROR

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

Definition at line 154 of file debug.h.

◆ dgTDEBUG

#define dgTDEBUG (   level)
Value:

Definition at line 187 of file debug.h.

◆ dgTDEBUG_ENABLE

#define dgTDEBUG_ENABLE (   level)    false

Definition at line 198 of file debug.h.

◆ dgTDEBUGIN

#define dgTDEBUGIN (   level)    dgTDEBUG(level) << "# In {" << std::endl

Definition at line 208 of file debug.h.

◆ dgTDEBUGINOUT

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

Definition at line 212 of file debug.h.

◆ dgTDEBUGOUT

#define dgTDEBUGOUT (   level)    dgTDEBUG(level) << "# Out }" << std::endl

Definition at line 210 of file debug.h.

◆ VP_DEBUG_MODE

#define VP_DEBUG_MODE   0

Definition at line 17 of file debug.h.

◆ VP_TEMPLATE_DEBUG_MODE

#define VP_TEMPLATE_DEBUG_MODE   0

VP_DEBUG_MODE.

Definition at line 21 of file debug.h.

Function Documentation

◆ dgDEBUGF() [1/2]

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

Definition at line 171 of file debug.h.

◆ dgDEBUGF() [2/2]

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

Definition at line 169 of file debug.h.

◆ dgERRORF() [1/2]

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

Definition at line 175 of file debug.h.

◆ dgERRORF() [2/2]

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

Definition at line 173 of file debug.h.

◆ dgTDEBUGF() [1/2]

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

Definition at line 195 of file debug.h.

◆ dgTDEBUGF() [2/2]

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

Definition at line 193 of file debug.h.

dynamicgraph::__null_stream
std::ostream & __null_stream()
Definition: debug.h:178


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