Exif tag reference, implemented as a static class. More...
#include <tags.hpp>
Static Public Member Functions | |
static std::string | tagName (uint16_t tag, IfdId ifdId) |
Return the name of the tag or a string with the hexadecimal value of the tag in the form "0x01ff", if the tag is not a known Exif tag. | |
static const char * | tagTitle (uint16_t tag, IfdId ifdId) |
Return the title (label) of the tag. (Deprecated, use tagLabel() instead.). | |
static const char * | tagLabel (uint16_t tag, IfdId ifdId) |
Return the title (label) of the tag. | |
static const char * | tagDesc (uint16_t tag, IfdId ifdId) |
Return the description of the tag. | |
static uint16_t | tag (const std::string &tagName, IfdId ifdId) |
Return the tag for one combination of IFD id and tagName. If the tagName is not known, it expects tag names in the form "0x01ff" and converts them to unsigned integer. | |
static IfdId | ifdIdByIfdItem (const std::string &ifdItem) |
Return the IFD id for an IFD item. | |
static const char * | ifdName (IfdId ifdId) |
Return the name of the IFD. | |
static const char * | ifdItem (IfdId ifdId) |
Return the related image item (image or thumbnail). | |
static const char * | sectionName (SectionId sectionId) |
Return the name of the section. | |
static const char * | sectionName (uint16_t tag, IfdId ifdId) |
Return the name of the section for a combination of tag and IFD id. | |
static const char * | sectionDesc (uint16_t tag, IfdId ifdId) |
Return the description of the section for a combination of tag and IFD id. | |
static SectionId | sectionId (const std::string §ionName) |
Return the section id for a section name. | |
static TypeId | tagType (uint16_t tag, IfdId ifdId) |
Return the type for tag and IFD id. | |
static std::ostream & | printTag (std::ostream &os, uint16_t tag, IfdId ifdId, const Value &value, const ExifData *pExifData=0) |
Interpret and print the value of an Exif tag. | |
static const TagInfo * | ifdTagList () |
Return read-only list of built-in IFD0/1 tags. | |
static const TagInfo * | exifTagList () |
Return read-only list of built-in Exif IFD tags. | |
static const TagInfo * | iopTagList () |
Return read-only list of built-in IOP tags. | |
static const TagInfo * | gpsTagList () |
Return read-only list of built-in GPS tags. | |
static const TagInfo * | mnTagList () |
Return read-only list of built-in Exiv2 Makernote info tags. | |
static void | taglist (std::ostream &os) |
Print a list of all standard Exif tags to output stream. | |
static void | taglist (std::ostream &os, IfdId ifdId) |
Print the list of tags for IfdId. | |
static bool | isMakerIfd (IfdId ifdId) |
Return true if ifdId is an Ifd id which is a makernote Ifd id. Note: Calling this function with makerIfd returns false. | |
static bool | isExifIfd (IfdId ifdId) |
Return true if ifdId is an Exif Ifd Id, i.e., one of ifd0Id, exifIfdId, gpsIfdId, iopIfdId or ifd1Id, else false. This is used to differentiate between standard Exif Ifds and Ifds associated with the makernote. |
Exif tag reference, implemented as a static class.
const char * Exiv2::ExifTags::sectionDesc | ( | uint16_t | tag, | |
IfdId | ifdId | |||
) | [static] |
Return the description of the section for a combination of tag and IFD id.
tag | The tag | |
ifdId | IFD id |
References Exiv2::SectionInfo::desc_, and Exiv2::TagInfo::sectionId_.
const char * Exiv2::ExifTags::sectionName | ( | uint16_t | tag, | |
IfdId | ifdId | |||
) | [static] |
Return the name of the section for a combination of tag and IFD id.
tag | The tag | |
ifdId | IFD id |
References Exiv2::SectionInfo::name_, and Exiv2::TagInfo::sectionId_.
uint16_t Exiv2::ExifTags::tag | ( | const std::string & | tagName, | |
IfdId | ifdId | |||
) | [static] |
Return the tag for one combination of IFD id and tagName. If the tagName is not known, it expects tag names in the form "0x01ff" and converts them to unsigned integer.
Error | if the tagname or ifdId is invalid |
References Exiv2::isHex(), and Exiv2::TagInfo::tag_.
const char * Exiv2::ExifTags::tagDesc | ( | uint16_t | tag, | |
IfdId | ifdId | |||
) | [static] |
Return the description of the tag.
tag | The tag | |
ifdId | IFD id |
References Exiv2::TagInfo::desc_.
const char * Exiv2::ExifTags::tagLabel | ( | uint16_t | tag, | |
IfdId | ifdId | |||
) | [static] |
Return the title (label) of the tag.
tag | The tag | |
ifdId | IFD id |
References Exiv2::TagInfo::title_.
Referenced by tagTitle().
std::string Exiv2::ExifTags::tagName | ( | uint16_t | tag, | |
IfdId | ifdId | |||
) | [static] |
Return the name of the tag or a string with the hexadecimal value of the tag in the form "0x01ff", if the tag is not a known Exif tag.
tag | The tag | |
ifdId | IFD id |
References Exiv2::TagInfo::name_.
const char * Exiv2::ExifTags::tagTitle | ( | uint16_t | tag, | |
IfdId | ifdId | |||
) | [static] |
Return the title (label) of the tag. (Deprecated, use tagLabel() instead.).
tag | The tag | |
ifdId | IFD id |
References tagLabel().