Exiv2
Loading...
Searching...
No Matches
xmpsidecar.hpp
1// SPDX-License-Identifier: GPL-2.0-or-later
2
3#ifndef XMPSIDECAR_HPP_
4#define XMPSIDECAR_HPP_
5
6// *****************************************************************************
7#include "exiv2lib_export.h"
8
9// included header files
10#include "image.hpp"
11
12// *****************************************************************************
13// namespace extensions
14namespace Exiv2 {
15// *****************************************************************************
16// class definitions
17
21class EXIV2API XmpSidecar : public Image {
22 public:
24
25
38 XmpSidecar(BasicIo::UniquePtr io, bool create);
40
42
43 void readMetadata() override;
44 void writeMetadata() override;
49 void setComment(const std::string&) override;
51
53
54 [[nodiscard]] std::string mimeType() const override;
56
57 Exiv2::Dictionary dates_;
58}; // class XmpSidecar
59
60// *****************************************************************************
61// template, inline and free functions
62
63// These could be static private functions on Image subclasses but then
64// ImageFactory needs to be made a friend.
70EXIV2API Image::UniquePtr newXmpInstance(BasicIo::UniquePtr io, bool create);
71
73EXIV2API bool isXmpType(BasicIo& iIo, bool advance);
74
75} // namespace Exiv2
76
77#endif // #ifndef XMPSIDECAR_HPP_
An interface for simple binary IO.
Definition basicio.hpp:35
std::unique_ptr< BasicIo > UniquePtr
BasicIo auto_ptr type.
Definition basicio.hpp:38
Abstract base class defining the interface for an image. This is the top-level interface to the Exiv2...
Definition image.hpp:50
std::unique_ptr< Image > UniquePtr
Image auto_ptr type.
Definition image.hpp:53
Class to access XMP sidecar files. They contain only XMP metadata.
Definition xmpsidecar.hpp:21
Class CrwImage to access Canon CRW images. References: The Canon RAW (CRW) File Format by Phil Harv...
Definition asfvideo.hpp:15
std::map< std::string, std::string > Dictionary
typedef for string:string map
Definition datasets.hpp:312
EXIV2API Image::UniquePtr newXmpInstance(BasicIo::UniquePtr io, bool create)
Create a new XmpSidecar instance and return an auto-pointer to it. Caller owns the returned object an...
Definition xmpsidecar.cpp:148
EXIV2API bool isXmpType(BasicIo &iIo, bool advance)
Check if the file iIo is an XMP sidecar file.
Definition xmpsidecar.cpp:156
List of TIFF compression to MIME type mappings.
Definition tiffimage.cpp:47