Exiv2
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.
87 EXIV2API Image::UniquePtr newEpsInstance(BasicIo::UniquePtr io, bool create);
88 
90 EXIV2API bool isEpsType(BasicIo& iIo, bool advance);
91 
92 } // namespace Exiv2
93 
94 #endif // #ifndef EPSIMAGE_HPP_
std::unique_ptr< Image > UniquePtr
Image auto_ptr type.
Definition: image.hpp:53
An interface for simple binary IO.
Definition: basicio.hpp:35
Class to access EPS images.
Definition: epsimage.hpp:39
Abstract base class defining the interface for an image. This is the top-level interface to the Exiv2...
Definition: image.hpp:50
EXIV2API bool isEpsType(BasicIo &iIo, bool advance)
Check if the file iIo is a EPS image.
Definition: epsimage.cpp:1120
List of TIFF compression to MIME type mappings.
Definition: tiffimage.cpp:47
std::unique_ptr< BasicIo > UniquePtr
BasicIo auto_ptr type.
Definition: basicio.hpp:38
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