105 virtual void operator() (
int warn_code,
const char* file_name,
106 int line_num,
const char *fmt, ...) = 0;
120 virtual void operator() (
int info_code,
const char* file_name,
121 int line_num,
const char* fmt, ...);
169 virtual void operator() (
int warn_code,
const char* file_name,
170 int line_num,
const char* fmt, ...);
218 virtual void operator() (
int warn_code,
const char* file_name,
219 int line_num,
const char *fmt, ...);
272#if (defined OJPH_OS_WINDOWS)
273 #define __OJPHFILE__ \
274 (strrchr(__FILE__, '\\') ? strrchr(__FILE__, '\\') + 1 : __FILE__)
276 #define __OJPHFILE__ \
277 (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
284#define OJPH_INFO(t, ...) \
285 { ojph::get_info()[0](t, __OJPHFILE__, __LINE__, __VA_ARGS__); }
286#define OJPH_WARN(t, ...) \
287 { ojph::get_warning()[0](t, __OJPHFILE__, __LINE__, __VA_ARGS__); }
288#define OJPH_ERROR(t, ...) \
289 { ojph::get_error()[0](t, __OJPHFILE__, __LINE__,__VA_ARGS__); }
This is the base class from which all messaging levels are derived.
Derived from message_base to handle error messages.
Derived from message_base to handle info messages.
Derived from message_base to handle warning messages.
OJPH_EXPORT message_info * get_info()
Get the info message object, whose operator() member class is called for info messages – See the macr...
OJPH_EXPORT message_warning * get_warning()
Get the warning message object, whose operator() member class is called for warning messages – See th...
OJPH_EXPORT void set_error_stream(FILE *s)
Replaces the error output file from the default stderr to user defined output file.
OJPH_EXPORT void configure_error(message_error *error)
This overrides the default behaviour of handling error messages.
OJPH_EXPORT message_error * get_error()
Get the error message object, whose operator() member class is called for error messages – See the ma...
OJPH_MSG_LEVEL
This enum is use to specify the level of severity of message while processing markers.
OJPH_EXPORT void set_warning_stream(FILE *s)
Replaces the warning output file from the default stdout to user defined output file.
OJPH_EXPORT void set_info_stream(FILE *s)
Replaces the info output file from the default stdout to user defined output file.
OJPH_EXPORT void configure_warning(message_warning *warn)
This overrides the default behaviour of handling warning messages.
OJPH_EXPORT void configure_info(message_info *info)
This overrides the default behaviour of handling info messages.
OJPH_EXPORT void set_message_level(OJPH_MSG_LEVEL level)
Sets the minimum severity of the message to be reported.