aboutsummaryrefslogtreecommitdiffstats
path: root/src/libpyexiv2.hpp
diff options
context:
space:
mode:
authorOlivier Tilloy <osomon@sanctuary>2008-01-16 22:04:49 +0100
committerOlivier Tilloy <osomon@sanctuary>2008-01-16 22:04:49 +0100
commit766426fa74e5c267d23e4ae5f20e32654f30554a (patch)
tree69c857a83ff146ae62616cc302df454e671bf052 /src/libpyexiv2.hpp
parent7fb82328d1edfe56b70c1bbd7f9fa26a31096a7e (diff)
downloadpyexiv2-766426fa74e5c267d23e4ae5f20e32654f30554a.tar.gz
Implemented feature request tracked by bug #175069 (Retrieve/set the JPEG comment): added methods getComment(), setComment(str) and clearComment() to class Image.
Diffstat (limited to 'src/libpyexiv2.hpp')
-rw-r--r--src/libpyexiv2.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libpyexiv2.hpp b/src/libpyexiv2.hpp
index 4c867de..a4175b7 100644
--- a/src/libpyexiv2.hpp
+++ b/src/libpyexiv2.hpp
@@ -135,6 +135,17 @@ namespace LibPyExiv2
// the thumbnail of the image.
void setThumbnailFromJpegFile(const std::string path);
+ // Read and write access to the JPEG comment embedded in the image.
+
+ // Get the JPEG comment contained in the image as a string.
+ const std::string getComment() const;
+
+ // Set the JPEG comment of the image.
+ void setComment(const std::string& comment);
+
+ // Clear the JPEG comment of the image (set it to an empty string).
+ void clearComment();
+
private:
std::string _filename;
Exiv2::Image::AutoPtr _image;