Feature #828

Method like ExifTags::taglist or IptcDataSets::dataSetList to get all XMP-tags

Added by Norbert Wagner over 4 years ago. Updated over 1 year ago.

Status:ClosedStart date:23 May 2012
Priority:NormalDue date:
Assignee:Robin Mills% Done:

100%

Category:not-a-bug
Target version:0.26

Description

I wanted to have a method like ExifTags::taglist or IptcDataSets::dataSetList to get all XMP-tags. Based on printProperties I have added following code to properties.cpp. I am not sure if the condition in the while-loop is a good way to get all sets.

void XmpProperties::printAllProperties(std::ostream& os)
{
//Exiv2::XmpPropertyInfo* ii = Exiv2::xmpNsInfo;//[0]->xmpPropertyInfo_;
int k = 0;
while (xmpNsInfo[k].xmpPropertyInfo_ != 0) {
const XmpPropertyInfo* pl = propertyList(xmpNsInfo[k].prefix_);
if (pl) {
for (int i = 0; pl[i].name_ != 0; +i) {
os << "Xmp." << xmpNsInfo[k].prefix_ << "." << pl[i];
}
}
k
+;
}
}

History

#1 Updated by Robin Mills over 1 year ago

  • Category set to not-a-bug
  • Status changed from New to Closed
  • Assignee set to Robin Mills
  • Target version set to 0.26

This is a feature request. Nobody else has asked for anything like this and I don't know the purpose of this change to the API. There are numerous sample applications when enumerate and report metadata. For example: samples/exiv2json.cpp

#2 Updated by Robin Mills over 1 year ago

  • % Done changed from 0 to 100

Also available in: Atom PDF

Redmine Appliance - Powered by TurnKey Linux