diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2009-03-26 09:59:08 +0100 |
---|---|---|
committer | Olivier Tilloy <olivier@tilloy.net> | 2009-03-26 09:59:08 +0100 |
commit | 938d8711997d22301718d3a181d638267abb0ef6 (patch) | |
tree | cfdb3d954d1622429d5a132d30f7f6f2220cb08b /src/exiv2wrapper.cpp | |
parent | c3d3594126d448f12060a584abc622fd2148560d (diff) | |
download | pyexiv2-938d8711997d22301718d3a181d638267abb0ef6.tar.gz |
Delete an EXIF tag.
Diffstat (limited to 'src/exiv2wrapper.cpp')
-rw-r--r-- | src/exiv2wrapper.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/exiv2wrapper.cpp b/src/exiv2wrapper.cpp index 83a3c95..4f0ceb9 100644 --- a/src/exiv2wrapper.cpp +++ b/src/exiv2wrapper.cpp @@ -143,26 +143,22 @@ void Image::setExifTag(std::string key, std::string value) throw Exiv2::Error(METADATA_NOT_READ); } -/*boost::python::tuple Image::deleteExifTag(std::string key) +void Image::deleteExifTag(std::string key) { - boost::python::tuple returnValue; if(_dataRead) { Exiv2::ExifKey exifKey = Exiv2::ExifKey(key); Exiv2::ExifMetadata::iterator i = _exifData.findKey(exifKey); if(i != _exifData.end()) { - Exiv2::Exifdatum exifDatum = _exifData[key]; - returnValue = boost::python::make_tuple(std::string(exifDatum.typeName()), exifDatum.toString()); _exifData.erase(i); - return returnValue; } else throw Exiv2::Error(KEY_NOT_FOUND, key); } else throw Exiv2::Error(METADATA_NOT_READ); -}*/ +} boost::python::list Image::iptcKeys() { |