Exiv2::ExifTags Class Reference

Container for Exif tag information. Implemented as a static class. More...

#include <tags.hpp>

Collaboration diagram for Exiv2::ExifTags:

Collaboration graph
[legend]
List of all members.

Static Public Member Functions

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.

const char * tagTitle (uint16_t tag, IfdId ifdId)
 Return the title (label) of the tag. (Deprecated, use tagLabel() instead.).

const char * tagLabel (uint16_t tag, IfdId ifdId)
 Return the title (label) of the tag.

const char * tagDesc (uint16_t tag, IfdId ifdId)
 Return the description of the tag.

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.

IfdId ifdIdByIfdItem (const std::string &ifdItem)
 Return the IFD id for an IFD item.

const char * ifdName (IfdId ifdId)
 Return the name of the IFD.

const char * ifdItem (IfdId ifdId)
 Return the related image item (image or thumbnail).

const char * sectionName (SectionId sectionId)
 Return the name of the section.

const char * sectionName (uint16_t tag, IfdId ifdId)
 Return the name of the section for a combination of tag and IFD id.

const char * sectionDesc (uint16_t tag, IfdId ifdId)
 Return the description of the section for a combination of tag and IFD id.

SectionId sectionId (const std::string &sectionName)
 Return the section id for a section name.

TypeId tagType (uint16_t tag, IfdId ifdId)
 Return the type for tag and IFD id.

std::ostream & printTag (std::ostream &os, uint16_t tag, IfdId ifdId, const Value &value)
 Interpret and print the value of an Exif tag.

const TagInfoifdTagList ()
 Return read-only list of built-in IFD0/1 tags.

const TagInfoexifTagList ()
 Return read-only list of built-in Exif IFD tags.

const TagInfoiopTagList ()
 Return read-only list of built-in IOP tags.

const TagInfogpsTagList ()
 Return read-only list of built-in GPS tags.

void taglist (std::ostream &os)
 Print a list of all standard Exif tags to output stream.

void makerTaglist (std::ostream &os, IfdId ifdId)
 Print a list of all tags related to one makernote IfdId.

void registerBaseTagInfo (IfdId ifdId)
 Register an IfdId with the base IFD TagInfo list for a makernote.

void registerMakerTagInfo (IfdId ifdId, const TagInfo *tagInfo)
 Register an IfdId and TagInfo list for a makernote.

bool isMakerIfd (IfdId ifdId)
 Return true if ifdId is an Ifd Id which is registered as a makernote Ifd id. Note: Calling this function with makerIfd returns false.


Detailed Description

Container for Exif tag information. Implemented as a static class.


Member Function Documentation

void Exiv2::ExifTags::registerMakerTagInfo IfdId  ifdId,
const TagInfo tagInfo
[static]
 

Register an IfdId and TagInfo list for a makernote.

Exceptions:
Error if the MakerTagInfo registry is full

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.

Parameters:
tag The tag
ifdId IFD id
Returns:
The description of the section or a string indicating that the section or the tag is unknown.

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.

Parameters:
tag The tag
ifdId IFD id
Returns:
The name of the section or a string indicating that the section or the tag is unknown.

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.

Exceptions:
Error if the tagname or ifdId is invalid

const char* Exiv2::ExifTags::tagDesc uint16_t  tag,
IfdId  ifdId
[static]
 

Return the description of the tag.

Parameters:
tag The tag
ifdId IFD id
Returns:
The description of the tag or a string indicating that the tag is unknown.

const char* Exiv2::ExifTags::tagLabel uint16_t  tag,
IfdId  ifdId
[static]
 

Return the title (label) of the tag.

Parameters:
tag The tag
ifdId IFD id
Returns:
The title (label) of the tag.

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.

Parameters:
tag The tag
ifdId IFD id
Returns:
The name of the tag or a string containing the hexadecimal value of the tag in the form "0x01ff", if this is an unknown tag.

const char* Exiv2::ExifTags::tagTitle uint16_t  tag,
IfdId  ifdId
[static]
 

Return the title (label) of the tag. (Deprecated, use tagLabel() instead.).

Parameters:
tag The tag
ifdId IFD id
Returns:
The title (label) of the tag.


The documentation for this class was generated from the following file:
Generated on Wed Dec 20 20:19:02 2006 for Exiv2 by doxygen 1.3.5