ifw-odp 5.0.0
Loading...
Searching...
No Matches
error.hpp
Go to the documentation of this file.
1
9#ifndef ODP_ERROR_HPP
10#define ODP_ERROR_HPP
11
12#ifndef __cplusplus
13#error This is a C++ include file and cannot be used from plain C
14#endif
15
17
18namespace ifw::odp {
19
34 class Error
35 {
36 public:
37
47 explicit Error();
48
56 virtual ~Error();
57
64 void ResetCplError();
65
72 bool CheckCplError() const;
73
74
75 protected:
76
77
78
85 std::string GetErrorMsg() const;
86 private:
87
88
89 private:
90 static int m_obj_num;
91 cpl_errorstate m_cpl_error_state;
92 };
93}
94#endif
This class handle the errors produced by the calling of image processing routines.
Definition error.hpp:35
virtual ~Error()
Class destructor.
Definition error.cpp:30
void ResetCplError()
Reset CPL error and internal error flag.
Definition error.cpp:37
std::string GetErrorMsg() const
Get CPL error message.
Definition error.cpp:53
bool CheckCplError() const
Check if there is an error in CPL.
Definition error.cpp:43
Error()
Class constructor.
Definition error.cpp:23
Definition array.cpp:16