Feature #828
Method like ExifTags::taglist or IptcDataSets::dataSetList to get all XMP-tags
Start date:
23 May 2012
Due date:
% Done:
100%
Estimated time:
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
Updated by Robin Mills about 6 years 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