digiKam
heif::Error Class Reference

Public Member Functions

 Error ()
 
 Error ()
 
 Error (const heif_error &err)
 
 Error (heif_error_code c, heif_suberror_code sc=heif_suberror_Unspecified, std::string msg="")
 
heif_error error_struct (ErrorBuffer *error_buffer) const
 
heif_error_code get_code () const
 
std::string get_message () const
 
heif_suberror_code get_subcode () const
 
 operator bool () const
 
 operator bool () const
 
bool operator!= (const Error &other) const
 
bool operator== (const Error &other) const
 

Static Public Member Functions

static const char * get_error_string (heif_error_code err)
 
static const char * get_error_string (heif_suberror_code err)
 

Public Attributes

enum heif_error_code error_code
 
std::string message
 
enum heif_suberror_code sub_error_code
 

Static Public Attributes

static const char kSuccess []
 
static Error Ok
 

Constructor & Destructor Documentation

◆ Error() [1/4]

heif::Error::Error ( )

◆ Error() [2/4]

heif::Error::Error ( heif_error_code  c,
heif_suberror_code  sc = heif_suberror_Unspecified,
std::string  msg = "" 
)

◆ Error() [3/4]

heif::Error::Error ( )
inline

◆ Error() [4/4]

heif::Error::Error ( const heif_error err)
inline

Member Function Documentation

◆ error_struct()

heif_error heif::Error::error_struct ( ErrorBuffer error_buffer) const

◆ get_code()

heif_error_code heif::Error::get_code ( ) const
inline

◆ get_error_string() [1/2]

static const char* heif::Error::get_error_string ( heif_error_code  err)
static

◆ get_error_string() [2/2]

static const char* heif::Error::get_error_string ( heif_suberror_code  err)
static

◆ get_message()

std::string heif::Error::get_message ( ) const
inline

◆ get_subcode()

heif_suberror_code heif::Error::get_subcode ( ) const
inline

◆ operator bool() [1/2]

heif::Error::operator bool ( ) const
inline

References error_code, and heif_error_Ok.

◆ operator bool() [2/2]

heif::Error::operator bool ( ) const
inline

References heif_error_Ok.

◆ operator!=()

bool heif::Error::operator!= ( const Error other) const
inline

◆ operator==()

bool heif::Error::operator== ( const Error other) const
inline

References error_code.

Member Data Documentation

◆ error_code

enum heif_error_code heif::Error::error_code

◆ kSuccess

const char heif::Error::kSuccess[]
static

◆ message

std::string heif::Error::message

◆ Ok

Error heif::Error::Ok
static

◆ sub_error_code

enum heif_suberror_code heif::Error::sub_error_code

Referenced by heif::operator<<().


The documentation for this class was generated from the following files: