24#include "exiv2lib_export.h"
63 virtual std::string
key()
const =0;
73 virtual uint16_t
tag()
const =0;
86 std::ostream&
write(std::ostream& os)
const {
return os << key(); }
101 virtual Key* clone_()
const =0;
108 return key.
write(os);
150 std::string print(
const ExifData* pMetadata =
nullptr)
const;
184 virtual std::ostream&
write(std::ostream& os,
const ExifData* pMetadata =
nullptr)
const = 0;
191 virtual std::string
key()
const =0;
201 virtual uint16_t
tag()
const =0;
A container for Exif data. This is a top-level class of the Exiv2 library. The container holds Exifda...
Definition: exif.hpp:434
Abstract base class defining the Key of a metadatum. Keys are used to identify and group metadata.
Definition: metadatum.hpp:44
virtual std::string groupName() const =0
Return the name of the group (the second part of the key)
virtual std::string key() const =0
Return the key of the metadatum as a string. The key is of the form 'familyName.groupName....
virtual std::string tagLabel() const =0
Return a label for the tag.
std::ostream & write(std::ostream &os) const
Write the key to an output stream. You do not usually have to use this function; it is used for the i...
Definition: metadatum.hpp:86
Key & operator=(const Key &rhs)=default
Assignment operator. Protected so that it can only be used by subclasses but not directly.
virtual uint16_t tag() const =0
Return the tag number.
std::unique_ptr< Key > UniquePtr
Shortcut for a Key auto pointer.
Definition: metadatum.hpp:47
virtual ~Key()=default
Destructor.
virtual std::string tagName() const =0
Return the name of the tag (which is also the third part of the key)
virtual const char * familyName() const =0
Return an identifier for the type of metadata (the first part of the key)
Common interface for all types of values used with metadata.
Definition: value.hpp:51
std::unique_ptr< Value > UniquePtr
Shortcut for a Value auto pointer.
Definition: value.hpp:54
Provides classes and functions to encode and decode Exif and Iptc data. The libexiv2 API consists of ...
Definition: basicio.hpp:43
EXIV2API std::ostream & operator<<(std::ostream &os, const DataSet &dataSet)
Output operator for dataSet.
Definition: datasets.cpp:677
EXIV2API bool cmpMetadataByTag(const Metadatum &lhs, const Metadatum &rhs)
Compare two metadata by tag. Return true if the tag of metadatum lhs is less than that of rhs.
Definition: metadatum.cpp:45
TypeId
Exiv2 value type identifiers.
Definition: types.hpp:100
ByteOrder
Type to express the byte order (little or big endian)
Definition: types.hpp:83
std::pair< int32_t, int32_t > Rational
8 byte signed rational type.
Definition: types.hpp:80
EXIV2API bool cmpMetadataByKey(const Metadatum &lhs, const Metadatum &rhs)
Compare two metadata by key. Return true if the key of metadatum lhs is less than that of rhs.
Definition: metadatum.cpp:51