Classes | Namespaces | Defines | Functions | Variables

debug.h File Reference

Include dependency graph for debug.h:

Classes

class  dynamicgraph::DebugTrace

Namespaces

namespace  dynamicgraph
 

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


Defines

#define VP_DEBUG_MODE   0
#define VP_TEMPLATE_DEBUG_MODE   0
#define DG_COMMON_TRACES
#define dgPREERROR
#define dgDEBUG(level)   if( 1 ) ; else std::cout
#define dgDEBUGMUTE(level)   if( 1 ) ; else std::cout
#define dgERROR   dgERRORFLOW.outputbuffer << dgPREERROR
#define dgTDEBUG(level)   if( 1 ) ; else std::cout
#define dgDEBUG_ENABLE(level)   false
#define dgTDEBUG_ENABLE(level)   false
#define dgDEBUGIN(level)   dgDEBUG(level) << "# In {" << std::endl
#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 level, const char *format,...)
void dgDEBUGF (const char *format,...)
void dgERRORF (const int level, const char *format,...)
void dgERRORF (const char *format,...)
void dgTDEBUGF (const int level, const char *format,...)
void dgTDEBUGF (const char *format,...)

Variables

DYNAMICGRAPH_EXPORT DebugTrace dynamicgraph::dgDEBUGFLOW
DYNAMICGRAPH_EXPORT 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)
#define dgDEBUG (   level  )     if( 1 ) ; else std::cout
#define dgDEBUG_ENABLE (   level  )     false
#define dgDEBUGIN (   level  )     dgDEBUG(level) << "# In {" << std::endl
#define dgDEBUGINOUT (   level  )     dgDEBUG(level) << "# In/Out { }" << std::endl
#define dgDEBUGMUTE (   level  )     if( 1 ) ; else std::cout
#define dgDEBUGOUT (   level  )     dgDEBUG(level) << "# Out }" << std::endl
#define dgERROR   dgERRORFLOW.outputbuffer << dgPREERROR
#define dgPREERROR
Value:
"\t!! "<<__FILE__ << ": " <<__FUNCTION__  \
                            << "(#" << __LINE__ << ") :"
#define dgTDEBUG (   level  )     if( 1 ) ; else std::cout
#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

Function Documentation

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




dynamicGraph library documentation