You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
121 lines
4.1 KiB
C++
121 lines
4.1 KiB
C++
19 years ago
|
// ***************************************************************** -*- C++ -*-
|
||
|
/*
|
||
18 years ago
|
* Copyright (C) 2004-2008 Andreas Huggel <ahuggel@gmx.net>
|
||
19 years ago
|
*
|
||
|
* 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.
|
||
|
*/
|
||
|
/*!
|
||
17 years ago
|
@file tifffwd_int.hpp
|
||
|
@brief Internal TIFF parser related typedefs and forward definitions.
|
||
19 years ago
|
@version $Rev$
|
||
|
@author Andreas Huggel (ahu)
|
||
|
<a href="mailto:ahuggel@gmx.net">ahuggel@gmx.net</a>
|
||
|
@date 24-Jun-06, ahu: created
|
||
|
*/
|
||
17 years ago
|
#ifndef TIFFFWD_INT_HPP_
|
||
|
#define TIFFFWD_INT_HPP_
|
||
19 years ago
|
|
||
|
// *****************************************************************************
|
||
|
// included header files
|
||
|
#include "types.hpp"
|
||
|
|
||
|
// + standard includes
|
||
|
#include <memory>
|
||
17 years ago
|
#include <stack>
|
||
19 years ago
|
|
||
|
// *****************************************************************************
|
||
17 years ago
|
// Exiv2 namespace extensions
|
||
19 years ago
|
namespace Exiv2 {
|
||
|
|
||
17 years ago
|
class Exifdatum;
|
||
|
|
||
|
namespace Internal {
|
||
19 years ago
|
|
||
17 years ago
|
class TiffHeaderBase;
|
||
19 years ago
|
class TiffComponent;
|
||
|
struct TiffStructure;
|
||
|
class TiffEntryBase;
|
||
|
class TiffEntry;
|
||
|
class TiffDataEntry;
|
||
|
class TiffSizeEntry;
|
||
|
class TiffDirectory;
|
||
|
class TiffSubIfd;
|
||
|
class TiffMnEntry;
|
||
|
class TiffArrayEntry;
|
||
|
class TiffArrayElement;
|
||
|
|
||
|
class TiffIfdMakernote;
|
||
|
|
||
|
class TiffVisitor;
|
||
|
class TiffFinder;
|
||
17 years ago
|
class TiffDecoder;
|
||
|
class TiffEncoder;
|
||
19 years ago
|
class TiffReader;
|
||
|
class TiffPrinter;
|
||
|
|
||
|
class TiffRwState;
|
||
17 years ago
|
struct TiffMappingInfo;
|
||
19 years ago
|
|
||
|
// *****************************************************************************
|
||
17 years ago
|
// type definitions
|
||
19 years ago
|
|
||
|
/*!
|
||
17 years ago
|
@brief Function pointer type for a TiffDecoder member function
|
||
19 years ago
|
to decode a TIFF component.
|
||
|
*/
|
||
17 years ago
|
typedef void (TiffDecoder::*DecoderFct)(const TiffEntryBase*);
|
||
|
/*!
|
||
|
@brief Function pointer type for a TiffDecoder member function
|
||
|
to decode a TIFF component.
|
||
|
*/
|
||
|
typedef void (TiffEncoder::*EncoderFct)(TiffEntryBase*, const Exifdatum*);
|
||
19 years ago
|
/*!
|
||
|
@brief Type for a function pointer for a function to decode a TIFF component.
|
||
|
*/
|
||
17 years ago
|
typedef DecoderFct (*FindDecoderFct)(const std::string& make,
|
||
|
uint32_t extendedTag,
|
||
|
uint16_t group);
|
||
17 years ago
|
/*!
|
||
|
@brief Type for a function pointer for a function to encode a TIFF component.
|
||
|
*/
|
||
|
typedef EncoderFct (*FindEncoderFct)(
|
||
|
const std::string& make,
|
||
|
uint32_t extendedTag,
|
||
|
uint16_t group
|
||
|
);
|
||
19 years ago
|
/*!
|
||
|
@brief Type for a function pointer for a function to create a TIFF component.
|
||
|
Use TiffComponent::AutoPtr, it is not used in this declaration only
|
||
|
to reduce dependencies.
|
||
|
*/
|
||
|
typedef std::auto_ptr<TiffComponent> (*NewTiffCompFct)( uint16_t tag,
|
||
|
const TiffStructure* ts);
|
||
17 years ago
|
//! Stack to hold a path from the TIFF root element to a TIFF entry
|
||
|
typedef std::stack<const TiffStructure*> TiffPath;
|
||
|
|
||
19 years ago
|
/*!
|
||
19 years ago
|
@brief Type for a factory function to create new TIFF components.
|
||
19 years ago
|
Use TiffComponent::AutoPtr, it is not used in this declaration only
|
||
|
to reduce dependencies.
|
||
|
*/
|
||
17 years ago
|
typedef std::auto_ptr<Internal::TiffComponent> (*TiffCompFactoryFct)(uint32_t extendedTag,
|
||
|
uint16_t group);
|
||
19 years ago
|
|
||
17 years ago
|
}} // namespace Internal, Exiv2
|
||
19 years ago
|
|
||
17 years ago
|
#endif // #ifndef TIFFFWD_INT_HPP_
|