aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier@tilloy.net>2009-03-19 09:50:55 +0100
committerOlivier Tilloy <olivier@tilloy.net>2009-03-19 09:50:55 +0100
commite78316f24a60c79ace82f537e83eed2d0261ab2e (patch)
tree9e01d4623f423d7b5bb5a198365bdc8fdcad7fda
parent7323c8131f036d0c8bcc2ffa4fc859e1d749ef22 (diff)
downloadpyexiv2-e78316f24a60c79ace82f537e83eed2d0261ab2e.tar.gz
Expose writeMetadata in the C++ wrapper.
-rw-r--r--src/exiv2wrapper.cpp4
-rw-r--r--src/exiv2wrapper.hpp2
-rw-r--r--src/exiv2wrapper_python.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/exiv2wrapper.cpp b/src/exiv2wrapper.cpp
index 3b1e229..8d22e69 100644
--- a/src/exiv2wrapper.cpp
+++ b/src/exiv2wrapper.cpp
@@ -62,7 +62,7 @@ void Image::readMetadata()
_dataRead = true;
}
-/*void Image::writeMetadata()
+void Image::writeMetadata()
{
if(_dataRead)
{
@@ -73,7 +73,7 @@ void Image::readMetadata()
}
else
throw Exiv2::Error(METADATA_NOT_READ);
-}*/
+}
boost::python::list Image::exifKeys()
{
diff --git a/src/exiv2wrapper.hpp b/src/exiv2wrapper.hpp
index df098aa..2d33cb7 100644
--- a/src/exiv2wrapper.hpp
+++ b/src/exiv2wrapper.hpp
@@ -45,7 +45,7 @@ public:
Image(const Image& image);
void readMetadata();
- //void writeMetadata();
+ void writeMetadata();
// Read and write access to the EXIF tags.
// For a complete list of the available EXIF tags, see
diff --git a/src/exiv2wrapper_python.cpp b/src/exiv2wrapper_python.cpp
index cd22f38..db97a0d 100644
--- a/src/exiv2wrapper_python.cpp
+++ b/src/exiv2wrapper_python.cpp
@@ -50,7 +50,7 @@ BOOST_PYTHON_MODULE(libexiv2python)
class_<Image>("Image", init<std::string>())
.def("readMetadata", &Image::readMetadata)
-// .def("writeMetadata", &Image::writeMetadata)
+ .def("writeMetadata", &Image::writeMetadata)
.def("exifKeys", &Image::exifKeys)
.def("getExifTag", &Image::getExifTag)