From 049df2489a48089a8b13d7a329c136d4c2ac680d Mon Sep 17 00:00:00 2001 From: Andreas Huggel Date: Thu, 12 Aug 2010 16:40:08 +0000 Subject: [PATCH] #719: Added new ExifTags::tagList() function which returns the taglist for an Exif group. --- src/tags.cpp | 7 +++++++ src/tags.hpp | 2 ++ 2 files changed, 9 insertions(+) diff --git a/src/tags.cpp b/src/tags.cpp index 37850aa1..3f2e7c89 100644 --- a/src/tags.cpp +++ b/src/tags.cpp @@ -1917,6 +1917,13 @@ namespace Exiv2 { N_("Unknown tag"), ifdIdNotSet, sectionIdNotSet, asciiString, printValue); + const TagInfo* ExifTags::tagList(const std::string& group) + { + const IfdInfo* ii = find(ifdInfo_, IfdInfo::Item(group)); + if (ii == 0 || ii->tagList_ == 0) return 0; + return ii->tagList_(); + } // ExifTags::tagList + const TagInfo* ExifTags::tagList(IfdId ifdId) { const IfdInfo* ii = find(ifdInfo_, ifdId); diff --git a/src/tags.hpp b/src/tags.hpp index ec9b3aed..9e857a8a 100644 --- a/src/tags.hpp +++ b/src/tags.hpp @@ -323,6 +323,8 @@ namespace Exiv2 { IfdId ifdId, const Value& value, const ExifData* pExifData =0); + //! Return read-only list of built-in \em group tags. + static const TagInfo* tagList(const std::string& group); //! Return read-only list of built-in IFD0/1 tags static const TagInfo* ifdTagList(); //! Return read-only list of built-in Exif IFD tags