Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Examples

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

const char * familyName ()
 Return an identifier for Exif metadata.
const char * tagName (uint16 tag, IfdId ifdId)
 Return the name of the tag.
const char * tagDesc (uint16 tag, IfdId ifdId)
 Return the description of the tag.
uint16 tag (const std::string &tagName, IfdId ifdId)
 Return the tag for one combination of IFD id and tagName.
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 tag, IfdId ifdId)
 Return the name of the section for a combination of tag and IFD id.
const char * sectionDesc (uint16 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.
std::string makeKey (uint16 tag, IfdId ifdId)
 Return the key for the tag and IFD id. The key is of the form 'Exif.ifdItem.tagName'.
std::pair< uint16, IfdIddecomposeKey (const std::string &key)
 Return tag and IFD id pair for the key.
std::ostream & printTag (std::ostream &os, uint16 tag, IfdId ifdId, const Value &value)
 Interpret and print the value of an Exif tag.
void taglist (std::ostream &os)
 Print a list of all tags to output stream.

Detailed Description

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


Member Function Documentation

std::pair< uint16, IfdId > Exiv2::ExifTags::decomposeKey const std::string &  key  )  [static]
 

Return tag and IFD id pair for the key.

Returns:
A pair consisting of the tag and IFD id.
Exceptions:
Error ("Invalid key") if the key cannot be parsed into item item, section name and tag name parts.

const char * Exiv2::ExifTags::sectionDesc uint16  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.
Exceptions:
Error ("No taginfo for IFD") if there is no tag info data for the given IFD id in the lookup tables.

const char * Exiv2::ExifTags::sectionName uint16  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.
Exceptions:
Error ("No taginfo for IFD") if there is no tag info data for the given IFD id in the lookup tables.

const char * Exiv2::ExifTags::tagDesc uint16  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.
Exceptions:
Error ("No taginfo for IFD") if there is no tag info data for the given IFD id in the lookup tables.

const char * Exiv2::ExifTags::tagName uint16  tag,
IfdId  ifdId
[static]
 

Return the name of the tag.

Parameters:
tag The tag
ifdId IFD id
Returns:
The name of the tag or a string indicating that the tag is unknown.
Exceptions:
Error ("No taginfo for IFD") if there is no tag info data for the given IFD id in the lookup tables.


The documentation for this class was generated from the following files:
Generated on Mon Sep 13 22:01:45 2004 for Exiv2 by doxygen 1.3.8