debug.h File Reference
#include <cstdio>
#include <cstdarg>
#include <iostream>
#include <fstream>
#include <sstream>
#include <dynamic-graph/fwd.hh>
#include <dynamic-graph/dynamic-graph-api.h>
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

namespace  dynamicgraph
 

WIN32.


Defines

#define VP_DEBUG_MODE   0
#define VP_TEMPLATE_DEBUG_MODE   0
 VP_DEBUG_MODE.
#define DG_COMMON_TRACES
 VP_TEMPLATE_DEBUG_MODE.
#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.
#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 *,...)
void dgTDEBUGF (const int, const char *,...)
void dgTDEBUGF (const char *,...)

Variables

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

Define Documentation

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

#define dgDEBUG (   level)
Value:
if (1)          \
    ;           \
  else            \
    std::cout
#define dgDEBUG_ENABLE (   level)    false
#define dgDEBUGIN (   level)    dgDEBUG(level) << "# In {" << std::endl

VP_DEBUG.

#define dgDEBUGINOUT (   level)    dgDEBUG(level) << "# In/Out { }" << std::endl
#define dgDEBUGMUTE
Value:
(level)     \
  if (1)          \
    ;           \
  else            \
    std::cout
#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 dgTDEBUGINOUT (   level)    dgTDEBUG(level) << "# In/Out { }" << std::endl
#define VP_DEBUG_MODE   0
#define VP_TEMPLATE_DEBUG_MODE   0

VP_DEBUG_MODE.


Function Documentation

void dgDEBUGF ( const int  ,
const char *  ,
  ... 
) [inline]
void dgDEBUGF ( const char *  ,
  ... 
) [inline]
void dgERRORF ( const int  ,
const char *  ,
  ... 
) [inline]
void dgERRORF ( const char *  ,
  ... 
) [inline]
void dgTDEBUGF ( const int  ,
const char *  ,
  ... 
) [inline]
void dgTDEBUGF ( const char *  ,
  ... 
) [inline]