|
|
|
@ -11,6 +11,7 @@
|
|
|
|
|
#include "makernote.hpp"
|
|
|
|
|
#include "tags.hpp"
|
|
|
|
|
#include "datasets.hpp"
|
|
|
|
|
#include "properties.hpp"
|
|
|
|
|
#include "error.hpp"
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
@ -40,10 +41,16 @@ try {
|
|
|
|
|
IfdId ifdId = ExifTags::ifdIdByIfdItem(item);
|
|
|
|
|
if (ExifTags::isMakerIfd(ifdId)) {
|
|
|
|
|
ExifTags::makerTaglist(std::cout, ifdId);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
XmpProperties::printProperties(std::cout, item);
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
catch(const AnyError& e) {
|
|
|
|
|
rc = 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case 1:
|
|
|
|
@ -55,7 +62,8 @@ try {
|
|
|
|
|
}
|
|
|
|
|
if (rc) {
|
|
|
|
|
std::cout << "Usage: " << argv[0]
|
|
|
|
|
<< " [Exif|Canon|CanonCs|CanonSi|CanonCf|Fujifilm|Minolta|Nikon1|Nikon2|Nikon3|Olympus|Panasonic|Pentax|Sigma|Sony|Iptc]\n"
|
|
|
|
|
<< " [Exif|Canon|CanonCs|CanonSi|CanonCf|Fujifilm|Minolta|Nikon1|Nikon2|Nikon3|Olympus|Panasonic|Pentax|Sigma|Sony|Iptc"
|
|
|
|
|
<< "|dc|xmp|xmpRights|xmpMM|xmpBJ|xmpTPg|xmpDM|pdf|photoshop|crs|tiff|exif|aux|iptc]\n"
|
|
|
|
|
<< "Print Exif tags, MakerNote tags, or Iptc datasets\n";
|
|
|
|
|
}
|
|
|
|
|
return rc;
|
|
|
|
|