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 { grk::t1::ojph::get_info()[0](t, __OJPHFILE__, __LINE__, __VA_ARGS__); }
286#define OJPH_WARN(t, ...) \
287 { grk::t1::ojph::get_warning()[0](t, __OJPHFILE__, __LINE__, __VA_ARGS__); }
288#define OJPH_ERROR(t, ...) \
289 { grk::t1::ojph::get_error()[0](t, __OJPHFILE__, __LINE__,__VA_ARGS__); }
This is the base class from which all messaging levels are derived.
Definition ojph_message.h:92
Derived from message_base to handle error messages.
Definition ojph_message.h:212
Derived from message_base to handle info messages.
Definition ojph_message.h:114
Derived from message_base to handle warning messages.
Definition ojph_message.h:163
Definition CoderOJPH.cpp:92
OJPH_EXPORT void set_info_stream(FILE *s)
Replaces the info output file from the default stdout to user defined output file.
Definition ojph_message.cpp:68
OJPH_EXPORT void set_warning_stream(FILE *s)
Replaces the warning output file from the default stdout to user defined output file.
Definition ojph_message.cpp:109
message_warning warn
Definition ojph_message.cpp:93
OJPH_EXPORT message_warning * get_warning()
Get the warning message object, whose operator() member class is called for warning messages – See th...
Definition ojph_message.cpp:103
OJPH_EXPORT void set_message_level(OJPH_MSG_LEVEL level)
Sets the minimum severity of the message to be reported.
Definition ojph_message.cpp:174
OJPH_EXPORT void configure_info(message_info *info)
This overrides the default behaviour of handling info messages.
Definition ojph_message.cpp:56
OJPH_EXPORT void configure_warning(message_warning *warn)
This overrides the default behaviour of handling warning messages.
Definition ojph_message.cpp:97
OJPH_EXPORT void set_error_stream(FILE *s)
Replaces the error output file from the default stderr to user defined output file.
Definition ojph_message.cpp:150
message_info info
Definition ojph_message.cpp:51
OJPH_EXPORT void configure_error(message_error *error)
This overrides the default behaviour of handling error messages.
Definition ojph_message.cpp:138
OJPH_MSG_LEVEL
This enum is use to specify the level of severity of message while processing markers.
Definition ojph_message.h:53
@ OJPH_MSG_NO_MSG
Definition ojph_message.h:58
@ OJPH_MSG_INFO
Definition ojph_message.h:55
@ OJPH_MSG_WARN
Definition ojph_message.h:56
@ OJPH_MSG_ALL_MSG
Definition ojph_message.h:54
@ OJPH_MSG_ERROR
Definition ojph_message.h:57
OJPH_EXPORT message_info * get_info()
Get the info message object, whose operator() member class is called for info messages – See the macr...
Definition ojph_message.cpp:62
OJPH_EXPORT message_error * get_error()
Get the error message object, whose operator() member class is called for error messages – See the ma...
Definition ojph_message.cpp:144
message_error error
Definition ojph_message.cpp:134
#define OJPH_EXPORT
Definition ojph_arch.h:123