#include <jpgermgr.h>
Public Types | |
enum | ERROR_CLASS { ERR_NONE = -1, ERR_STANDARD = 0, ERR_TRACE = 1, ERR_STRUCTURE, ERR_FORMAT, ERR_LIMITS, ERR_UNSUPPORTED, ERR_INTERNAL } |
Public Member Functions | |
JPEGErrorManager () | |
Default constructor for the JPEGErrorManager providing callbacks for error handling in the IJG JPEG Library. By default no exceptions will be thrown. | |
void | ThrowError (StringID UserErrorMessage) |
Classes external to the IJG Library should use this entry point to throw exceptions. | |
ERROR_CLASS | GetLastErrorClass () const |
Used internally to provide easy access to m_ErrorClass. | |
J_MESSAGE_CODE | GetLastError () const |
Used internally for easy access. | |
StringID | GetStringIDForError () const |
Allows class users to obtain a resource string id suitable for reporting to the user (usually via Error::SetError(...)). | |
const libJPEG::jpeg_error_mgr * | GetErrorMgrStruct () const |
libJPEG::jpeg_error_mgr * | GetErrorMgrStruct () |
Static Public Member Functions | |
static void | ErrorExit (libJPEG::j_common_ptr cinfo) |
The IJG library requires a callback to exit once an error has occurred. This is that callback. It throws an exception. | |
static void | OutputMessage (libJPEG::j_common_ptr cinfo) |
Actual output of an error or trace message. Overrides standard implementation of sending errors to stderr. | |
static void | EmitMessage (libJPEG::j_common_ptr cinfo, INT32 msg_level) |
Decide whether to emit a trace or warning message. | |
static void | ResetErrorManager (libJPEG::j_common_ptr cinfo) |
Resets the the error manager prior to starting the filter proper. | |
Protected Attributes | |
libJPEG::jpeg_error_mgr | m_errmgr |
ERROR_CLASS | m_ErrorClass |
StringID | m_MessageID |
Static Protected Attributes | |
static const ERROR_CLASS * | m_ErrorClassTable |
Definition at line 122 of file jpgermgr.h.
|
Definition at line 125 of file jpgermgr.h. 00126 { 00127 ERR_NONE = -1, 00128 ERR_STANDARD = 0, 00129 ERR_TRACE = 1, 00130 ERR_STRUCTURE ,//= _R(IDS_JPEG_ERROR_STRUCTURE), 00131 ERR_FORMAT ,//= _R(IDS_JPEG_ERROR_FORMAT), 00132 ERR_LIMITS ,//= _R(IDS_JPEG_ERROR_LIMITS), 00133 ERR_UNSUPPORTED ,//= _R(IDS_JPEG_ERROR_UNSUPPORTED), 00134 ERR_INTERNAL ,//= _R(IDS_JPEG_ERROR_INTERNAL) 00135 };
|
|
Default constructor for the JPEGErrorManager providing callbacks for error handling in the IJG JPEG Library. By default no exceptions will be thrown.
Definition at line 662 of file jpgermgr.cpp. |
|
Decide whether to emit a trace or warning message.
-1: recoverable corrupt-data warning, may want to abort. 0: important advisory messages (always display to user). 1: first level of tracing detail. 2,3,...: successively more detailed tracing messages. Definition at line 854 of file jpgermgr.cpp. |
|
The IJG library requires a callback to exit once an error has occurred. This is that callback. It throws an exception.
Definition at line 800 of file jpgermgr.cpp. |
|
Definition at line 145 of file jpgermgr.h. 00145 {return &m_errmgr;};
|
|
Definition at line 144 of file jpgermgr.h. 00144 {return &m_errmgr;};
|
|
Used internally for easy access.
Definition at line 698 of file jpgermgr.cpp. |
|
Used internally to provide easy access to m_ErrorClass.
Definition at line 779 of file jpgermgr.cpp. |
|
Allows class users to obtain a resource string id suitable for reporting to the user (usually via Error::SetError(...)).
Definition at line 721 of file jpgermgr.cpp. |
|
Actual output of an error or trace message. Overrides standard implementation of sending errors to stderr.
Definition at line 826 of file jpgermgr.cpp. |
|
Resets the the error manager prior to starting the filter proper.
Definition at line 893 of file jpgermgr.cpp. |
|
Classes external to the IJG Library should use this entry point to throw exceptions.
Definition at line 758 of file jpgermgr.cpp. |
|
Definition at line 153 of file jpgermgr.h. |
|
Definition at line 154 of file jpgermgr.h. |
|
Definition at line 157 of file jpgermgr.h. |
|
Definition at line 155 of file jpgermgr.h. |