aboutsummaryrefslogtreecommitdiffstats
path: root/src/exiv2wrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/exiv2wrapper.cpp')
-rw-r--r--src/exiv2wrapper.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/exiv2wrapper.cpp b/src/exiv2wrapper.cpp
index cc2d455..c579b87 100644
--- a/src/exiv2wrapper.cpp
+++ b/src/exiv2wrapper.cpp
@@ -281,13 +281,6 @@ const ExifTag Image::getExifTag(std::string key)
return ExifTag(key, &_exifData[key], &_exifData);
}
-void Image::setExifTagValue(std::string key, std::string value)
-{
- CHECK_METADATA_READ
-
- _exifData[key] = value;
-}
-
void Image::deleteExifTag(std::string key)
{
CHECK_METADATA_READ
@@ -571,6 +564,15 @@ void ExifTag::setRawValue(const std::string& value)
_datum->setValue(value);
}
+void ExifTag::setParentImage(Image& image)
+{
+ _data = image.getExifData();
+ std::string value = _datum->toString();
+ delete _datum;
+ _datum = &(*_data)[_key.key()];
+ _datum->setValue(value);
+}
+
const std::string ExifTag::getKey()
{
return _key.key();