Blame include/exiv2/epsimage.hpp

Packit Service 21b5d1
// ***************************************************************** -*- C++ -*-
Packit Service 21b5d1
/*
Packit Service 21b5d1
 * Copyright (C) 2004-2018 Exiv2 authors
Packit Service 21b5d1
 * This program is part of the Exiv2 distribution.
Packit Service 21b5d1
 *
Packit Service 21b5d1
 * This program is free software; you can redistribute it and/or
Packit Service 21b5d1
 * modify it under the terms of the GNU General Public License
Packit Service 21b5d1
 * as published by the Free Software Foundation; either version 2
Packit Service 21b5d1
 * of the License, or (at your option) any later version.
Packit Service 21b5d1
 *
Packit Service 21b5d1
 * This program is distributed in the hope that it will be useful,
Packit Service 21b5d1
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 21b5d1
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service 21b5d1
 * GNU General Public License for more details.
Packit Service 21b5d1
 *
Packit Service 21b5d1
 * You should have received a copy of the GNU General Public License
Packit Service 21b5d1
 * along with this program; if not, write to the Free Software
Packit Service 21b5d1
 * Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301 USA.
Packit Service 21b5d1
 */
Packit Service 21b5d1
/*!
Packit Service 21b5d1
  @file    epsimage.hpp
Packit Service 21b5d1
  @brief   EPS image.
Packit Service 21b5d1
           
References:
Packit Service 21b5d1
           
[1] Adobe PostScript Language Document Structuring Conventions Specification, Version 3.0, September 1992
Packit Service 21b5d1
           
[2] Adobe Encapsulated PostScript File Format Specification, Version 3.0, May 1992
Packit Service 21b5d1
           
[3] Adobe XMP Specification Part 3: Storage in Files, July 2010
Packit Service 21b5d1
           
[4] Re: Thumbnail data format in ai file, Dec 2003
Packit Service 21b5d1
  @author  Michael Ulbrich (mul)
Packit Service 21b5d1
           mul@rentapacs.de
Packit Service 21b5d1
  @author  Volker Grabsch (vog)
Packit Service 21b5d1
           vog@notjusthosting.com
Packit Service 21b5d1
  @date    7-Mar-2011, vog: created
Packit Service 21b5d1
 */
Packit Service 21b5d1
#ifndef EPSIMAGE_HPP_
Packit Service 21b5d1
#define EPSIMAGE_HPP_
Packit Service 21b5d1
Packit Service 21b5d1
// *****************************************************************************
Packit Service 21b5d1
#include "exiv2lib_export.h"
Packit Service 21b5d1
Packit Service 21b5d1
// included header files
Packit Service 21b5d1
#include "image.hpp"
Packit Service 21b5d1
Packit Service 21b5d1
// *****************************************************************************
Packit Service 21b5d1
// namespace extensions
Packit Service 21b5d1
namespace Exiv2
Packit Service 21b5d1
{
Packit Service 21b5d1
Packit Service 21b5d1
// *****************************************************************************
Packit Service 21b5d1
// class definitions
Packit Service 21b5d1
Packit Service 21b5d1
    // Add EPS to the supported image formats
Packit Service 21b5d1
    namespace ImageType {
Packit Service 21b5d1
        const int eps = 18;                     //!< EPS image type
Packit Service 21b5d1
    }
Packit Service 21b5d1
Packit Service 21b5d1
    /*!
Packit Service 21b5d1
      @brief Class to access EPS images.
Packit Service 21b5d1
     */
Packit Service 21b5d1
    class EXIV2LIB_DEPRECATED_EXPORT EpsImage : public Image {
Packit Service 21b5d1
    public:
Packit Service 21b5d1
        //! @name Creators
Packit Service 21b5d1
        //@{
Packit Service 21b5d1
        /*!
Packit Service 21b5d1
          @brief Constructor to open a EPS image. Since the
Packit Service 21b5d1
              constructor can't return a result, callers should check the
Packit Service 21b5d1
              good() method after object construction to determine success
Packit Service 21b5d1
              or failure.
Packit Service 21b5d1
          @param io An auto-pointer that owns a BasicIo instance used for
Packit Service 21b5d1
              reading and writing image metadata. \b Important: The constructor
Packit Service 21b5d1
              takes ownership of the passed in BasicIo instance through the
Packit Service 21b5d1
              auto-pointer. Callers should not continue to use the BasicIo
Packit Service 21b5d1
              instance after it is passed to this method.  Use the Image::io()
Packit Service 21b5d1
              method to get a temporary reference.
Packit Service 21b5d1
          @param create Specifies if an existing image should be read (false)
Packit Service 21b5d1
              or if a new file should be created (true).
Packit Service 21b5d1
         */
Packit Service 21b5d1
        EpsImage(BasicIo::AutoPtr io, bool create);
Packit Service 21b5d1
        //@}
Packit Service 21b5d1
Packit Service 21b5d1
        //! @name Manipulators
Packit Service 21b5d1
        //@{
Packit Service 21b5d1
        void readMetadata();
Packit Service 21b5d1
        void writeMetadata();
Packit Service 21b5d1
        /*!
Packit Service 21b5d1
          @brief Not supported.
Packit Service 21b5d1
              Calling this function will throw an instance of Error(kerInvalidSettingForImage).
Packit Service 21b5d1
         */
Packit Service 21b5d1
        void setComment(const std::string& comment);
Packit Service 21b5d1
        //@}
Packit Service 21b5d1
Packit Service 21b5d1
        //! @name Accessors
Packit Service 21b5d1
        //@{
Packit Service 21b5d1
        std::string mimeType() const;
Packit Service 21b5d1
        //@}
Packit Service 21b5d1
Packit Service 21b5d1
    private:
Packit Service 21b5d1
        //! @name NOT Implemented
Packit Service 21b5d1
        //@{
Packit Service 21b5d1
        //! Copy constructor
Packit Service 21b5d1
        EpsImage(const EpsImage& rhs);
Packit Service 21b5d1
        //! Assignment operator
Packit Service 21b5d1
        EpsImage& operator=(const EpsImage& rhs);
Packit Service 21b5d1
        //@}
Packit Service 21b5d1
Packit Service 21b5d1
    }; // class EpsImage
Packit Service 21b5d1
Packit Service 21b5d1
// *****************************************************************************
Packit Service 21b5d1
// template, inline and free functions
Packit Service 21b5d1
Packit Service 21b5d1
    // These could be static private functions on Image subclasses but then
Packit Service 21b5d1
    // ImageFactory needs to be made a friend.
Packit Service 21b5d1
    /*!
Packit Service 21b5d1
      @brief Create a new EpsImage instance and return an auto-pointer to it.
Packit Service 21b5d1
             Caller owns the returned object and the auto-pointer ensures that
Packit Service 21b5d1
             it will be deleted.
Packit Service 21b5d1
     */
Packit Service 21b5d1
    EXIV2LIB_DEPRECATED_EXPORT Image::AutoPtr newEpsInstance(BasicIo::AutoPtr io, bool create);
Packit Service 21b5d1
Packit Service 21b5d1
    //! Check if the file iIo is a EPS image.
Packit Service 21b5d1
    EXIV2LIB_DEPRECATED_EXPORT bool isEpsType(BasicIo& iIo, bool advance);
Packit Service 21b5d1
Packit Service 21b5d1
}                                       // namespace Exiv2
Packit Service 21b5d1
Packit Service 21b5d1
#endif                                  // #ifndef EPSIMAGE_HPP_