ifw-odp
2.0.0-alpha
|
This class handle the errors produced by the calling of image processing routines. More...
#include <error.hpp>
Public Member Functions | |
Error () | |
Class constructor. More... | |
virtual | ~Error () |
Class destructor. More... | |
void | ResetCplError () |
Reset CPL error and internal error flag. More... | |
bool | CheckCplError () const |
Check if there is an error in CPL. More... | |
Protected Member Functions | |
void | AddCplError () const |
Add CPL error to the error stack. More... | |
std::string | GetErrorMsg () const |
Get CPL error message. More... | |
Static Protected Member Functions | |
static void | DumpError (unsigned self, unsigned first, unsigned last) |
Dump current CPL error. More... | |
This class handle the errors produced by the calling of image processing routines.
Error - class that handles CPL errors. Each CPL error will trigger a standard C++ runtime exception.
This class should be used as parent for classes where there will be an interface with CPL routines. This class also takes care of initializing and cleaning up CPL calling the corresponding CPL functions.
|
explicit |
Class constructor.
Initialize CPL core library. This is done only for the creation of the first object of this type.
|
virtual |
Class destructor.
Stop internal CPL subsystems for the last object destroyed.
|
protected |
Add CPL error to the error stack.
bool odp::Error::CheckCplError | ( | ) | const |
Check if there is an error in CPL.
|
staticprotected |
Dump current CPL error.
self | The number of the current error to be copied |
first | The number of the first error to be copied |
last | The number of the last error to be copied |
|
protected |
Get CPL error message.
void odp::Error::ResetCplError | ( | ) |
Reset CPL error and internal error flag.