| 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
32 namespace Exiv2 {
33// *****************************************************************************
34// class definitions
35
39 class 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_
Exiv2::BasicIo
An interface for simple binary IO.
Definition basicio.hpp:35
Exiv2::BasicIo::UniquePtr
std::unique_ptr< BasicIo > UniquePtr
BasicIo auto_ptr type.
Definition basicio.hpp:38
Exiv2::EpsImage::EpsImage
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:1026
Exiv2::EpsImage::setComment
void setComment(const std::string &) override
Not supported. Calling this function will throw an instance of Error(ErrorCode::kerInvalidSettingForI...
Definition epsimage.cpp:1046
Exiv2::EpsImage::writeMetadata
void writeMetadata() override
Write metadata back to the image.
Definition epsimage.cpp:1071
Exiv2::EpsImage::readMetadata
void readMetadata() override
Read all metadata supported by a specific image format from the image. Before this method is called,...
Definition epsimage.cpp:1050
Exiv2::EpsImage::mimeType
std::string mimeType() const override
Return the MIME type of the image.
Definition epsimage.cpp:1042
Exiv2::Image::Image
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
Exiv2::Image::io
virtual BasicIo & io() const
Return a reference to the BasicIo instance being used for Io.
Definition image.cpp:696
Exiv2::Image::UniquePtr
std::unique_ptr< Image > UniquePtr
Image auto_ptr type.
Definition image.hpp:53
Exiv2
Class CrwImage to access Canon CRW images. References: The Canon RAW (CRW) File Format by Phil Harv...
Definition asfvideo.hpp:15
Exiv2::newEpsInstance
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:1094
Exiv2::isEpsType
EXIV2API bool isEpsType(BasicIo &iIo, bool advance)
Check if the file iIo is a EPS image.
Definition epsimage.cpp:1102