21 #ifndef LIBHEIF_ERROR_H
22 #define LIBHEIF_ERROR_H
24 #if defined(HAVE_CONFIG_H)
44 static constexpr
char kSuccess[] =
"Success";
55 m_error_message = c_success;
60 m_error_message = m_buffer.c_str();
64 return m_error_message;
68 constexpr
static const char* c_success =
"Success";
70 const char* m_error_message = c_success;
void set_error(std::string err)
Definition: error.h:58
ErrorBuffer()
Definition: error.h:52
const char * get_error() const
Definition: error.h:63
void set_success()
Definition: error.h:54
enum heif_error_code error_code
Definition: error.h:77
static const char kSuccess[]
Definition: error.h:89
static const char * get_error_string(heif_suberror_code err)
static Error Ok
Definition: error.h:87
bool operator!=(const Error &other) const
Definition: error.h:92
static const char * get_error_string(heif_error_code err)
std::string message
Definition: error.h:79
bool operator==(const Error &other) const
Definition: error.h:91
Error(heif_error_code c, heif_suberror_code sc=heif_suberror_Unspecified, std::string msg="")
enum heif_suberror_code sub_error_code
Definition: error.h:78
heif_error error_struct(ErrorBuffer *error_buffer) const
heif_suberror_code
Definition: heif.h:124
@ heif_suberror_Unspecified
Definition: heif.h:126
heif_error_code
Definition: heif.h:91
@ heif_error_Ok
Definition: heif.h:93
Definition: bitstream.h:41
std::ostream & operator<<(std::ostream &ostr, const Error &err)
Definition: error.h:103