Added experimental bool ExifData::hasMakerNote() method

This commit is contained in:
Andreas Huggel 2005-07-31 09:35:15 +00:00
parent 5823ceaff3
commit 47aad1f393
2 changed files with 13 additions and 0 deletions

View File

@ -899,6 +899,15 @@ namespace Exiv2 {
return rc;
} // ExifData::stdThumbPosition
bool ExifData::hasMakerNote() const
{
const_iterator e = end();
for (const_iterator md = begin(); md != e; ++md) {
if (ExifTags::isMakerIfd(md->ifdId())) return true;
}
return false;
} // ExifData::hasMakerNote
ByteOrder ExifData::byteOrder() const
{
if (pTiffHeader_) return pTiffHeader_->byteOrder();

View File

@ -717,6 +717,10 @@ namespace Exiv2 {
@brief Returns the byte order. Default is little endian.
*/
ByteOrder byteOrder() const;
/*!
@brief Returns true if at least one makernote tag exists, else false.
*/
bool hasMakerNote() const;
/*!
@brief Write the thumbnail image to a file. A filename extension
is appended to \em path according to the image type of the