Exiv2
Loading...
Searching...
No Matches
epsimage.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2
21#ifndef EPSIMAGE_HPP_
22#define EPSIMAGE_HPP_
23
24// *****************************************************************************
25#include "exiv2lib_export.h"
26
27// included header files
28#include "image.hpp"
29
30// *****************************************************************************
31// namespace extensions
32namespace Exiv2 {
33// *****************************************************************************
34// class definitions
35
39class EXIV2API EpsImage : public Image {
40 public:
42
43
57 EpsImage(BasicIo::UniquePtr io, bool create);
59
61
62 void readMetadata() override;
63 void writeMetadata() override;
68 void setComment(const std::string&) override;
70
72
73 [[nodiscard]] std::string mimeType() const override;
75}; // class EpsImage
76
77// *****************************************************************************
78// template, inline and free functions
79
80// These could be static private functions on Image subclasses but then
81// ImageFactory needs to be made a friend.
87EXIV2API Image::UniquePtr newEpsInstance(BasicIo::UniquePtr io, bool create);
88
90EXIV2API bool isEpsType(BasicIo& iIo, bool advance);
91
92} // namespace Exiv2
93
94#endif // #ifndef EPSIMAGE_HPP_
An interface for simple binary IO.
Definition basicio.hpp:35
std::unique_ptr< BasicIo > UniquePtr
BasicIo auto_ptr type.
Definition basicio.hpp:38
EpsImage(BasicIo::UniquePtr io, bool create)
Constructor to open a EPS image. Since the constructor can't return a result, callers should check th...
Definition epsimage.cpp:1044
void setComment(const std::string &) override
Not supported. Calling this function will throw an instance of Error(ErrorCode::kerInvalidSettingForI...
Definition epsimage.cpp:1064
void writeMetadata() override
Write metadata back to the image.
Definition epsimage.cpp:1089
void readMetadata() override
Read all metadata supported by a specific image format from the image. Before this method is called,...
Definition epsimage.cpp:1068
std::string mimeType() const override
Return the MIME type of the image.
Definition epsimage.cpp:1060
Image(ImageType type, uint16_t supportedMetadata, BasicIo::UniquePtr io)
Constructor taking the image type, a bitmap of the supported metadata types and an auto-pointer that ...
Definition image.cpp:132
virtual BasicIo & io() const
Return a reference to the BasicIo instance being used for Io.
Definition image.cpp:680
std::unique_ptr< Image > UniquePtr
Image auto_ptr type.
Definition image.hpp:53
Class CrwImage to access Canon CRW images. References: The Canon RAW (CRW) File Format by Phil Harv...
Definition asfvideo.hpp:15
EXIV2API Image::UniquePtr newEpsInstance(BasicIo::UniquePtr io, bool create)
Create a new EpsImage instance and return an auto-pointer to it. Caller owns the returned object and ...
Definition epsimage.cpp:1112
EXIV2API bool isEpsType(BasicIo &iIo, bool advance)
Check if the file iIo is a EPS image.
Definition epsimage.cpp:1120