14#ifndef CPL_ERROR_INTERNAL_H_INCLUDED
15#define CPL_ERROR_INTERNAL_H_INCLUDED
17#ifdef GDAL_COMPILATION
30class CPL_DLL CPLErrorHandlerAccumulatorStruct
37 CPLErrorHandlerAccumulatorStruct() : type(CE_None), no(
CPLE_None)
43 : type(eErrIn), no(noIn), msg(msgIn)
62class CPL_DLL CPLErrorAccumulator
66 CPLErrorAccumulator() =
default;
68 struct CPL_DLL Context
73 Context(
const Context &) =
delete;
74 Context &operator=(
const Context &) =
delete;
75 Context(Context &&) =
delete;
76 Context &operator=(Context &&) =
delete;
79 friend class CPLErrorAccumulator;
80 explicit Context(CPLErrorAccumulator &sAccumulator);
89 const std::vector<CPLErrorHandlerAccumulatorStruct> &GetErrors()
const
99 std::vector<CPLErrorHandlerAccumulatorStruct> errors{};
CPL error handling services.
#define CPLE_None
No error.
Definition cpl_error.h:83
CPLErr
Error category.
Definition cpl_error.h:37
int CPLErrorNum
Error number.
Definition cpl_error.h:80
#define CPL_WARN_UNUSED_RESULT
Qualifier to warn when the return value of a function is not used.
Definition cpl_port.h:870
Various convenience functions for working with strings and string lists.