7#include "exiv2lib_export.h"
10#include "metadatum.hpp"
180 return os << static_cast<int>(
id);
185 using GroupName = std::string;
186 bool operator==(
IfdId ifdId)
const;
187 bool operator==(
const GroupName&
groupName)
const;
244 static void taglist(std::ostream& os);
249 static const char* sectionName(
const ExifKey& key);
251 static uint16_t defaultCount(
const ExifKey& key);
258 static bool isMakerGroup(
const std::string&
groupName);
264 static bool isExifGroup(
const std::string&
groupName);
286 explicit ExifKey(
const std::string& key);
296 ExifKey(uint16_t tag,
const std::string& groupName);
318 void setIdx(
int idx)
const;
323 [[nodiscard]] std::string key()
const override;
324 [[nodiscard]]
const char* familyName()
const override;
325 [[nodiscard]] std::string
groupName()
const override;
327 [[nodiscard]]
IfdId ifdId()
const;
328 [[nodiscard]] std::string tagName()
const override;
329 [[nodiscard]] uint16_t tag()
const override;
330 [[nodiscard]] std::string tagLabel()
const override;
331 [[nodiscard]] std::string tagDesc()
const override;
333 [[nodiscard]]
TypeId defaultTypeId()
const;
337 [[nodiscard]]
int idx()
const;
342 [[nodiscard]]
ExifKey* clone_()
const override;
346 std::unique_ptr<Impl> p_;
A container for Exif data. This is a top-level class of the Exiv2 library. The container holds Exifda...
Definition exif.hpp:379
Concrete keys for Exif metadata and access to Exif tag reference data.
Definition tags.hpp:271
~ExifKey() override
Destructor.
std::unique_ptr< ExifKey > UniquePtr
Shortcut for an ExifKey auto pointer.
Definition tags.hpp:274
Abstract base class defining the Key of a metadatum. Keys are used to identify and group metadata.
Definition metadatum.hpp:26
Common interface for all types of values used with metadata.
Definition value.hpp:33
const char * groupName(IfdId ifdId)
Return the group name for a group id.
Definition tags_int.cpp:2477
void taglist(std::ostream &os, IfdId ifdId)
Print the list of tags for ifdId to the output stream os.
Definition tags_int.cpp:2424
const TagInfo * tagList(IfdId ifdId)
Return the tag list for ifdId.
Definition tags_int.cpp:2432
const char * ifdName(IfdId ifdId)
Return the name of the IFD.
Definition tags_int.cpp:2471
Class CrwImage to access Canon CRW images. References: The Canon RAW (CRW) File Format by Phil Harv...
Definition asfvideo.hpp:15
EXIV2API std::ostream & operator<<(std::ostream &os, const DataSet &dataSet)
Output operator for dataSet.
Definition datasets.cpp:590
IfdId
Type to specify the IFD to which a metadata belongs.
Definition tags.hpp:34
TypeId
Exiv2 value type identifiers.
Definition types.hpp:70
const TagInfo *(*)() TagListFct
A function returning a tag list.
Definition tags.hpp:28
SectionId
Section identifiers to logically group tags. A section consists of nothing more than a name,...
Definition tags.hpp:198
std::ostream &(*)(std::ostream &, const Value &, const ExifData *pExifData) PrintFct
Type for a function pointer for functions interpreting the tag value.
Definition tags.hpp:26
Internal Pimpl structure with private members and data of class ExifKey.
Definition tags.cpp:144
The details of an Exif group. Groups include IFDs and binary arrays.
Definition tags.hpp:184
TagListFct tagList_
Tag list.
Definition tags.hpp:191
const char * ifdName_
IFD name.
Definition tags.hpp:189
const char * groupName_
Group name, unique for each group.
Definition tags.hpp:190
IfdId ifdId_
IFD id.
Definition tags.hpp:188
Tag information.
Definition tags.hpp:224
uint16_t tag_
Tag.
Definition tags.hpp:225
IfdId ifdId_
Link to the (preferred) IFD.
Definition tags.hpp:229
int16_t count_
The number of values (not bytes!), 0=any, -1=count not known.
Definition tags.hpp:232
TypeId typeId_
Type id.
Definition tags.hpp:231
SectionId sectionId_
Section id.
Definition tags.hpp:230
const char * desc_
Short tag description.
Definition tags.hpp:228
const char * title_
Tag title.
Definition tags.hpp:227
PrintFct printFct_
Pointer to tag print function.
Definition tags.hpp:233
const char * name_
One word tag label.
Definition tags.hpp:226