|
Exiv2
|
A container for XMP data. This is a top-level class of the Exiv2 library. More...
#include <xmp.hpp>
Public Types | |
| typedef XmpMetadata::iterator | iterator |
| XmpMetadata iterator type. | |
| typedef XmpMetadata::const_iterator | const_iterator |
| XmpMetadata const iterator type. | |
Public Member Functions | |
Manipulators | |
| Xmpdatum & | operator[] (const std::string &key) |
| Returns a reference to the Xmpdatum that is associated with a particular key. If XmpData does not already contain such an Xmpdatum, operator[] adds object Xmpdatum(key). More... | |
| int | add (const XmpKey &key, const Value *value) |
| Add an Xmpdatum from the supplied key and value pair. This method copies (clones) the value. More... | |
| int | add (const Xmpdatum &xmpdatum) |
| Add a copy of the Xmpdatum to the XMP metadata. More... | |
| iterator | erase (iterator pos) |
| Delete the Xmpdatum at iterator position pos, return the position of the next Xmpdatum. More... | |
| void | clear () |
| Delete all Xmpdatum instances resulting in an empty container. | |
| void | sortByKey () |
| Sort metadata by key. | |
| iterator | begin () |
| Begin of the metadata. | |
| iterator | end () |
| End of the metadata. | |
| iterator | findKey (const XmpKey &key) |
| Find the first Xmpdatum with the given key, return an iterator to it. | |
Accessors | |
| const_iterator | begin () const |
| Begin of the metadata. | |
| const_iterator | end () const |
| End of the metadata. | |
| const_iterator | findKey (const XmpKey &key) const |
| Find the first Xmpdatum with the given key, return a const iterator to it. | |
| bool | empty () const |
| Return true if there is no XMP metadata. | |
| long | count () const |
| Get the number of metadata entries. | |
A container for XMP data. This is a top-level class of the Exiv2 library.
Provide high-level access to the XMP data of an image:
Add an Xmpdatum from the supplied key and value pair. This method copies (clones) the value.
Referenced by Exiv2::XmpParser::terminate().
| int Exiv2::XmpData::add | ( | const Xmpdatum & | xmpdatum | ) |
Add a copy of the Xmpdatum to the XMP metadata.
| XmpData::iterator Exiv2::XmpData::erase | ( | XmpData::iterator | pos | ) |
Delete the Xmpdatum at iterator position pos, return the position of the next Xmpdatum.
Referenced by Exiv2::Converter::cnvNone(), Exiv2::Converter::cnvXmpArray(), Exiv2::Converter::cnvXmpComment(), Exiv2::Converter::cnvXmpDate(), Exiv2::Converter::cnvXmpFlash(), Exiv2::Converter::cnvXmpGPSCoord(), Exiv2::Converter::cnvXmpGPSVersion(), Exiv2::Converter::cnvXmpValue(), Exiv2::Converter::cnvXmpValueToIptc(), and Exiv2::Converter::cnvXmpVersion().
| Xmpdatum & Exiv2::XmpData::operator[] | ( | const std::string & | key | ) |
Returns a reference to the Xmpdatum that is associated with a particular key. If XmpData does not already contain such an Xmpdatum, operator[] adds object Xmpdatum(key).
1.8.13