Exiv2
Loading...
Searching...
No Matches
epsimage.hpp
Go to the documentation of this file.
1// ***************************************************************** -*- C++ -*-
2/*
3 * Copyright (C) 2004-2021 Exiv2 authors
4 * This program is part of the Exiv2 distribution.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301 USA.
19 */
34#ifndef EPSIMAGE_HPP_
35#define EPSIMAGE_HPP_
36
37// *****************************************************************************
38#include "exiv2lib_export.h"
39
40// included header files
41#include "image.hpp"
42
43// *****************************************************************************
44// namespace extensions
45namespace Exiv2
46{
47
48// *****************************************************************************
49// class definitions
50
51 // Add EPS to the supported image formats
52 namespace ImageType {
53 const int eps = 18;
54 }
55
59 class EXIV2LIB_DEPRECATED_EXPORT EpsImage : public Image {
60 public:
62
63
77 EpsImage(BasicIo::AutoPtr io, bool create);
79
81
82 void readMetadata();
83 void writeMetadata();
88 void setComment(const std::string& comment);
90
92
93 std::string mimeType() const;
95
96 private:
98
99
100 EpsImage(const EpsImage& rhs);
102 EpsImage& operator=(const EpsImage& rhs);
104
105 }; // class EpsImage
106
107// *****************************************************************************
108// template, inline and free functions
109
110 // These could be static private functions on Image subclasses but then
111 // ImageFactory needs to be made a friend.
117 EXIV2LIB_DEPRECATED_EXPORT Image::AutoPtr newEpsInstance(BasicIo::AutoPtr io, bool create);
118
120 EXIV2LIB_DEPRECATED_EXPORT bool isEpsType(BasicIo& iIo, bool advance);
121
122} // namespace Exiv2
123
124#endif // #ifndef EPSIMAGE_HPP_
An interface for simple binary IO.
Definition basicio.hpp:55
std::auto_ptr< BasicIo > AutoPtr
BasicIo auto_ptr type.
Definition basicio.hpp:58
void writeMetadata()
Write metadata back to the image.
Definition epsimage.cpp:1130
void readMetadata()
Read all metadata supported by a specific image format from the image. Before this method is called,...
Definition epsimage.cpp:1108
std::string mimeType() const
Return the MIME type of the image.
Definition epsimage.cpp:1098
EpsImage(BasicIo::AutoPtr io, bool create)
Constructor to open a EPS image. Since the constructor can't return a result, callers should check th...
Definition epsimage.cpp:1078
void setComment(const std::string &comment)
Not supported. Calling this function will throw an instance of Error(kerInvalidSettingForImage).
Definition epsimage.cpp:1103
virtual std::string comment() const
Return a copy of the image comment. May be an empty string.
Definition image.cpp:742
std::auto_ptr< Image > AutoPtr
Image auto_ptr type.
Definition image.hpp:81
virtual BasicIo & io() const
Return a reference to the BasicIo instance being used for Io.
Definition image.cpp:752
Image(int imageType, uint16_t supportedMetadata, BasicIo::AutoPtr io)
Constructor taking the image type, a bitmap of the supported metadata types and an auto-pointer that ...
Definition image.cpp:167
Supported image formats.
Definition asfvideo.hpp:42
const int eps
EPS image type.
Definition epsimage.hpp:53
Provides classes and functions to encode and decode Exif and Iptc data. The libexiv2 API consists of ...
Definition asfvideo.hpp:36
EXIV2LIB_DEPRECATED_EXPORT Image::AutoPtr newEpsInstance(BasicIo::AutoPtr io, bool create)
Create a new EpsImage instance and return an auto-pointer to it. Caller owns the returned object and ...
Definition epsimage.cpp:1154
EXIV2LIB_DEPRECATED_EXPORT bool isEpsType(BasicIo &iIo, bool advance)
Check if the file iIo is a EPS image.
Definition epsimage.cpp:1163