43 #include <pcl/pcl_exports.h>
44 #include <pcl/pcl_config.h>
46 #define PCL_ALWAYS(...) pcl::console::print (pcl::console::L_ALWAYS, __VA_ARGS__)
47 #define PCL_ERROR(...) pcl::console::print (pcl::console::L_ERROR, __VA_ARGS__)
48 #define PCL_WARN(...) pcl::console::print (pcl::console::L_WARN, __VA_ARGS__)
49 #define PCL_INFO(...) pcl::console::print (pcl::console::L_INFO, __VA_ARGS__)
50 #define PCL_DEBUG(...) pcl::console::print (pcl::console::L_DEBUG, __VA_ARGS__)
51 #define PCL_VERBOSE(...) pcl::console::print (pcl::console::L_VERBOSE, __VA_ARGS__)
53 #define PCL_ASSERT_ERROR_PRINT_CHECK(pred, msg) \
59 PCL_ERROR("In File %s, in line %d\n" __FILE__, __LINE__); \
63 #define PCL_ASSERT_ERROR_PRINT_RETURN(pred, msg, err) \
66 PCL_ASSERT_ERROR_PRINT_CHECK(pred, msg); \
67 if (!(pred)) return err; \
164 print_color (FILE *stream,
int attr,
int fg,
const char *format, ...);
177 print_info (FILE *stream,
const char *format, ...);
203 print_error (FILE *stream,
const char *format, ...);
216 print_warn (FILE *stream,
const char *format, ...);
229 print_debug (FILE *stream,
const char *format, ...);
243 print_value (FILE *stream,
const char *format, ...);
PCL_EXPORTS void change_text_color(FILE *stream, int attribute, int fg, int bg)
Change the text color (on either stdout or stderr) with an attr:fg:bg.
PCL_EXPORTS void print_value(const char *format,...)
Print a value message on stream with colors.
PCL_EXPORTS void print_info(const char *format,...)
Print an info message on stream with colors.
PCL_EXPORTS bool isVerbosityLevelEnabled(VERBOSITY_LEVEL severity)
is verbosity level enabled?
PCL_EXPORTS void setVerbosityLevel(VERBOSITY_LEVEL level)
set the verbosity level
PCL_EXPORTS void enableColoredOutput(FILE *stream, bool enable)
Enable or disable colored text output, overriding the default behavior.
PCL_EXPORTS void print_debug(const char *format,...)
Print a debug message on stream with colors.
PCL_EXPORTS void reset_text_color(FILE *stream)
Reset the text color (on either stdout or stderr) to its original state.
PCL_EXPORTS void print(VERBOSITY_LEVEL level, FILE *stream, const char *format,...)
Print a message on stream.
PCL_EXPORTS void print_color(FILE *stream, int attr, int fg, const char *format,...)
Print a message on stream with colors.
PCL_EXPORTS void print_warn(const char *format,...)
Print a warning message on stream with colors.
PCL_EXPORTS bool initVerbosityLevel()
initialize verbosity level.
PCL_EXPORTS void print_highlight(const char *format,...)
Print a highlighted info message on stream with colors.
PCL_EXPORTS void print_error(const char *format,...)
Print an error message on stream with colors.
PCL_EXPORTS VERBOSITY_LEVEL getVerbosityLevel()
get the verbosity level.