// ***************************************************************** -*- C++ -*- /* * Copyright (C) 2004-2009 Andreas Huggel * * This program is part of the Exiv2 distribution. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301 USA. */ /*! @file cr2image_int.hpp @brief Internal classes to support CR2 image format @version $Rev$ @author Andreas Huggel (ahu) ahuggel@gmx.net @date 23-Apr-08, ahu: created */ #ifndef CR2IMAGE_INT_HPP_ #define CR2IMAGE_INT_HPP_ // ***************************************************************************** // included header files #include "tiffimage_int.hpp" #include "types.hpp" // + standard includes #include // ***************************************************************************** // namespace extensions namespace Exiv2 { namespace Internal { // ***************************************************************************** // class definitions /*! @brief Canon CR2 header structure. */ class Cr2Header : public TiffHeaderBase { public: //! @name Creators //@{ //! Default constructor Cr2Header(); //! Destructor. ~Cr2Header(); //@} //! @name Manipulators //@{ bool read(const byte* pData, uint32_t size); //@} //! @name Accessors //@{ DataBuf write() const; //@} private: // DATA uint32_t offset2_; //!< Bytes 12-15 from the header static const char* cr2sig_; //!< Signature for CR2 type TIFF }; // class Cr2Header }} // namespace Internal, Exiv2 #endif // #ifndef CR2IMAGE_INT_HPP_