/** * @brief Parsing the jpeg file and prepare (internally) exif directory structure * @return true if parsing was successful and exif information exists in JpegReader object * false in case of unsuccessful parsing */ bool ExifReader::parse() { m_exif = getExif(); if( !m_exif.empty() ) { return true; } return false; }
/** * @brief Parsing the file and prepare (internally) exif directory structure * @return true if parsing was successful and exif information exists in JpegReader object * false in case of unsuccessful parsing */ bool ExifReader::parse() { try { m_exif = getExif(); if( !m_exif.empty() ) { return true; } return false; } catch (ExifParsingError&) { return false; } }