OpenJPH
Open-source implementation of JPEG2000 Part-15
|
This is the base class from which all messaging levels are derived. More...
#include <ojph_message.h>
Public Member Functions | |
virtual void | operator() (int warn_code, const char *file_name, int line_num, const char *fmt,...)=0 |
Prints a message and for errors throws an exception. All derived classes must override this virtual function. | |
This is the base class from which all messaging levels are derived.
The customization is global, and cannot be separately tailored for each decoder's instantiation.
Importantly it defined the base virtual operator() that must be defined in all derived classes.
Definition at line 91 of file ojph_message.h.
|
pure virtual |
Prints a message and for errors throws an exception. All derived classes must override this virtual function.
warn_code | Message code (integer) for identifications. |
file_name | The file name where the message originates. |
line_num | The line number where the message originates. |
fmt | The format of the message; this is printf format. |
... | A variable number of parameters to print. This is the parameters you would pass to printf. |
Implemented in ojph::message_error, ojph::message_info, and ojph::message_warning.