![]() |
Visual Servoing Platform version 3.5.0
|
Classes | |
| class | vpTraceOutput |
| class | vpDisplayException |
| class | vpException |
| class | vpImageException |
| class | vpIoException |
| class | vpMatrixException |
| class | vpTrackingException |
Macros | |
| #define | vpIN_FCT (vpTraceOutput(__FILE__, __LINE__, __FUNCTION__, false, "begin ")) |
| #define | vpOUT_FCT (vpTraceOutput(__FILE__, __LINE__, __FUNCTION__, false, "end ")) |
| #define | vpCTRACE std::cout << "(L0) " << __FILE__ << ": " << __FUNCTION__ << "(#" << __LINE__ << ") : " |
| #define | vpCERROR |
| #define | vpERROR_TRACE (vpTraceOutput(__FILE__, __LINE__, __FUNCTION__, true)) |
| #define | vpTRACE (vpTraceOutput(__FILE__, __LINE__, __FUNCTION__, false)) |
| #define | vpDERROR_TRACE (vpTraceOutput(__FILE__, __LINE__, __FUNCTION__, true)) |
| #define | vpDEBUG_TRACE (vpTraceOutput(__FILE__, __LINE__, __FUNCTION__, false)) |
| #define | vpCDEBUG(level) |
| #define | vpDEBUG_ENABLE(level) (VP_DEBUG_MODE >= level) |
Debug and exceptions.
| #define vpCDEBUG | ( | level | ) |
vpCDEBUG(level) work like the C++ output stream std::cout.
| #define vpCERROR |
Used to display error messages on the error stream (C++). Use like this : vpCERROR<<"my message"<<std::endl;
| #define vpCTRACE std::cout << "(L0) " << __FILE__ << ": " << __FUNCTION__ << "(#" << __LINE__ << ") : " |
Used to display trace messages on the standard stream (C++). Use like this : vpCTRACE<<"my message"<<std::endl;
| #define vpDEBUG_ENABLE | ( | level | ) | (VP_DEBUG_MODE >= level) |
vpDEBUG_ENABLE(level) is equal to 1 if the debug level level is greater than the debug mode VP_DEBUG_MODE, 0 else.
| #define vpDEBUG_TRACE (vpTraceOutput(__FILE__, __LINE__, __FUNCTION__, false)) |
vpDEBUG_TRACE works like printf, but prints only if the tracing level level is greater than the debug level VP_DEBUG_MODE.
| #define vpDERROR_TRACE (vpTraceOutput(__FILE__, __LINE__, __FUNCTION__, true)) |
vpDERROR_TRACE works like printf, but prints only if the tracing level is smaller than the debug level VP_DEBUG_MODE.
| #define vpERROR_TRACE (vpTraceOutput(__FILE__, __LINE__, __FUNCTION__, true)) |
Used to display error messages on the error stream. Prints the name of the file, the function name and the line where it was used. Use like this : vpERROR_TRACE("my error message number %d", i); with any "printf" string.
| #define vpIN_FCT (vpTraceOutput(__FILE__, __LINE__, __FUNCTION__, false, "begin ")) |
Works like vpTRACE() and should be used at the beginning of a function.
| #define vpOUT_FCT (vpTraceOutput(__FILE__, __LINE__, __FUNCTION__, false, "end ")) |
Works like vpTRACE() and should be used at the end of a function.
| #define vpTRACE (vpTraceOutput(__FILE__, __LINE__, __FUNCTION__, false)) |
Used to display trace messages on the standard stream. Prints the name of the file, the function name and the line where it was used. Use like this : vpTRACE("my debug message number %d", i); with any "printf" string.