Visual Servoing Platform
version 3.4.0
|
#include <vpDebug.h>
Public Member Functions | |
vpTraceOutput (const char *file, int line, const char *func, bool error=false, const char *s=NULL) | |
void | operator() (int level, const char *format,...) |
void | operator() (const char *format,...) |
void | display (const char *format, va_list args) |
This class is used to display debug or error messages.
It needs to be initialized with the file name, function name and line, of the place where it is created. It is best used by first instanciating the object and directly calling the () operator. This is used to mimic variadic macros.
This class is used to define the following macros:
The example below shows how to use these macros.
|
inline |
Constructor.
file | Should be the name of the file where this constructor was called. |
line | Should be the line in file where this constructor was called. |
func | Should be the name of the function where this constructor was called. |
error | If true, writes to the error stream. |
s | String to print before any other message (acts like a header). |
|
inline |
Displays a message to either stdout or stderr (based on error boolean).
format | Formating string. |
args | List of arguments. |
Definition at line 219 of file vpDebug.h.
Referenced by operator()().
|
inline |