75 int line_num,
const char* fmt, ...)
81 info_code, file_name, line_num);
116 int line_num,
const char *fmt, ...)
122 warn_code, file_name, line_num);
157 int line_num,
const char *fmt, ...)
162 error_code, file_name, line_num);
170 throw std::runtime_error(
"ojph error");
Derived from message_base to handle error messages.
virtual void operator()(int warn_code, const char *file_name, int line_num, const char *fmt,...)
See the base message_base::operator() for details about parameters.
Derived from message_base to handle info messages.
virtual void operator()(int info_code, const char *file_name, int line_num, const char *fmt,...)
See the base message_base::operator() for details about parameters.
Derived from message_base to handle warning messages.
virtual void operator()(int warn_code, const char *file_name, int line_num, const char *fmt,...)
See the base message_base::operator() for details about parameters.
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_MSG_LEVEL message_level
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.
message_warning * local_warn
message_info * local_info
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.
message_error * local_error