MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / cnvExifArray

Method cnvExifArray

src/convert.cpp:592–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

590}
591
592void Converter::cnvExifArray(const char* from, const char* to) {
593 auto pos = exifData_->findKey(ExifKey(from));
594 if (pos == exifData_->end())
595 return;
596 if (!prepareXmpTarget(to))
597 return;
598 for (size_t i = 0; i < pos->count(); ++i) {
599 std::string value = pos->toString(i);
600 if (!pos->value().ok()) {
601#ifndef SUPPRESS_WARNINGS
602 EXV_WARNING << "Failed to convert " << from << " to " << to << "\n";
603#endif
604 return;
605 }
606 (*xmpData_)[to] = value;
607 }
608 if (erase_)
609 exifData_->erase(pos);
610}
611
612void Converter::cnvExifDate(const char* from, const char* to) {
613 auto pos = exifData_->findKey(ExifKey(from));

Callers

nothing calls this directly

Calls 6

ExifKeyClass · 0.85
findKeyMethod · 0.45
endMethod · 0.45
countMethod · 0.45
toStringMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected