diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2007-03-12 23:57:55 +0100 |
---|---|---|
committer | Olivier Tilloy <olivier@tilloy.net> | 2007-03-12 23:57:55 +0100 |
commit | 1b48deeb7952c27e8dba6c5b3c702efc5e582a65 (patch) | |
tree | 2bb95fe2595c9180cde8b7caa8c88d07b8b93393 /src/libpyexiv2.hpp | |
parent | da26eb1a24eadc3ed9bf6f1850197ac5240486ec (diff) | |
download | pyexiv2-1b48deeb7952c27e8dba6c5b3c702efc5e582a65.tar.gz |
Modified methods Image::getIptcTag(...) and Image::setIptcTag(...) to take into account the possibility for an IPTC tag to be repeatable.
Diffstat (limited to 'src/libpyexiv2.hpp')
-rw-r--r-- | src/libpyexiv2.hpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/libpyexiv2.hpp b/src/libpyexiv2.hpp index a63a05f..514094a 100644 --- a/src/libpyexiv2.hpp +++ b/src/libpyexiv2.hpp @@ -88,18 +88,23 @@ namespace LibPyExiv2 // even if a tag is present more than once. boost::python::list getAvailableIptcTags(); - // Return true if the required IPTC tag is set, false otherwise. + // Return true if the required IPTC tag is set at least once, false + // otherwise. bool isIptcTagSet(std::string key); - // Return a tuple containing the type (as a string) and the value - // (as a string as well) of the required IPTC tag. + // Return a list of tuples, each containing the type (as a string) and + // the value (as a string as well) of the required IPTC tag. // Throw an exception if the tag is not set. - boost::python::tuple getIptcTag(std::string key); + boost::python::list getIptcTag(std::string key); // Set the IPTC tag's value and return a tuple containing the // type and previous value of the tag (empty strings if not previously // set). If the tag was not previously set, it is created. - boost::python::tuple setIptcTag(std::string key, std::string value); + // If the key references a repeatable tag, the parameter index (starting + // from 0 like a list index) is used to determine which of the + // repetitions is to be set. In case of an index greater than the + // highest existing one, adds a repetition of the tag. + boost::python::tuple setIptcTag(std::string key, std::string value, unsigned int index); // Delete the required IPTC tag and return a tuple containing the // type and previous value. |