diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2007-01-20 21:32:00 +0100 |
---|---|---|
committer | Olivier Tilloy <olivier@tilloy.net> | 2007-01-20 21:32:00 +0100 |
commit | a0492164d90727aa26f2a1849fb82697dda3d0ab (patch) | |
tree | 207b76a020803b587efc339ebe50eeaba91c5b3c /src/libpyexiv2.hpp | |
parent | 420bd817181d7f674cb765e0452e78557855358b (diff) | |
download | pyexiv2-a0492164d90727aa26f2a1849fb82697dda3d0ab.tar.gz |
Complete switch to C++/Python exceptions: methods do not return empty strings or tuples anymore, they throw an exception instead.
Diffstat (limited to 'src/libpyexiv2.hpp')
-rw-r--r-- | src/libpyexiv2.hpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/libpyexiv2.hpp b/src/libpyexiv2.hpp index dff97ce..53cf532 100644 --- a/src/libpyexiv2.hpp +++ b/src/libpyexiv2.hpp @@ -104,8 +104,7 @@ namespace LibPyExiv2 // Sets the thumbnail of the image. The parameter is the thumbnail raw // jpeg data as a string buffer. - // Returns true if successful, false otherwise. - bool setThumbnailData(std::string data); + void setThumbnailData(std::string data); // Deletes the thumbnail embedded in the image. void deleteThumbnail(); @@ -113,13 +112,11 @@ namespace LibPyExiv2 // Writes the thumbnail to an image file. // A filename extension is appended to the given path according to the // image type of the thumbnail, so it should not include an extension. - // Returns true if successful, false otherwise. - bool dumpThumbnailToFile(const std::string path); + void dumpThumbnailToFile(const std::string path); // Sets the image contained in the jpeg file passed as a parameter as // the thumbnail of the image. - // Returns true if successful, false otherwise. - bool setThumbnailFromJpegFile(const std::string path); + void setThumbnailFromJpegFile(const std::string path); private: std::string _filename; |