Exiv2
tifffwd_int.hpp
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 */
20#ifndef TIFFFWD_INT_HPP_
21#define TIFFFWD_INT_HPP_
22
23// *****************************************************************************
24// included header files
25#include "types.hpp"
26#include "tags_int.hpp"
27
28// + standard includes
29#include <memory>
30#include <stack>
31#include <vector>
32
33// *****************************************************************************
34// Exiv2 namespace extensions
35namespace Exiv2 {
36
37 class Exifdatum;
38
39 namespace Internal {
40
41 class TiffHeaderBase;
42 class TiffComponent;
43 class TiffEntryBase;
44 class TiffEntry;
45 class TiffDataEntry;
46 class TiffSizeEntry;
47 class TiffDirectory;
48 class TiffSubIfd;
49 class TiffMnEntry;
50 class TiffBinaryArray;
51 class TiffBinaryElement;
52
53 class TiffIfdMakernote;
54 class MnHeader;
55
56 class TiffVisitor;
57 class TiffFinder;
58 class TiffDecoder;
59 class TiffEncoder;
60 class TiffReader;
61
62 class TiffRwState;
63 class TiffPathItem;
64 struct TiffMappingInfo;
65
66 class IoWrapper;
67 class OffsetWriter;
68
69// *****************************************************************************
70// type definitions
71
76 using DecoderFct = void (TiffDecoder::*)(const TiffEntryBase*);
81 using EncoderFct = void (TiffEncoder::*)(TiffEntryBase*, const Exifdatum*);
85 using FindDecoderFct = DecoderFct (*)(const std::string& make, uint32_t extendedTag, IfdId group);
89 using FindEncoderFct = EncoderFct (*)(const std::string& make, uint32_t extendedTag, IfdId group);
95 using NewTiffCompFct = std::unique_ptr<TiffComponent> (*)(uint16_t tag, IfdId group);
96
98 using TiffPath = std::stack<TiffPathItem>;
99
101 using PrimaryGroups = std::vector<IfdId>;
102}} // namespace Internal, Exiv2
103
104#endif // #ifndef TIFFFWD_INT_HPP_
An Exif metadatum, consisting of an ExifKey and a Value and methods to manipulate these.
Definition: exif.hpp:59
TIFF composite visitor to decode metadata from the TIFF tree and add it to an Image,...
Definition: tiffvisitor_int.hpp:277
TIFF composite visitor to encode metadata from an image to the TIFF tree. The metadata containers and...
Definition: tiffvisitor_int.hpp:377
This abstract base class provides the common functionality of an IFD directory entry and defines an e...
Definition: tiffcomposite_int.hpp:414
EncoderFct(*)(const std::string &make, uint32_t extendedTag, IfdId group) FindEncoderFct
Type for a function pointer for a function to encode a TIFF component.
Definition: tifffwd_int.hpp:89
void(TiffEncoder::*)(TiffEntryBase *, const Exifdatum *) EncoderFct
Function pointer type for a TiffDecoder member function to decode a TIFF component.
Definition: tifffwd_int.hpp:81
DecoderFct(*)(const std::string &make, uint32_t extendedTag, IfdId group) FindDecoderFct
Type for a function pointer for a function to decode a TIFF component.
Definition: tifffwd_int.hpp:85
std::stack< TiffPathItem > TiffPath
Stack to hold a path from the TIFF root element to a TIFF entry.
Definition: tifffwd_int.hpp:98
std::vector< IfdId > PrimaryGroups
Type for a list of primary image groups.
Definition: tifffwd_int.hpp:101
void(TiffDecoder::*)(const TiffEntryBase *) DecoderFct
Function pointer type for a TiffDecoder member function to decode a TIFF component.
Definition: tifffwd_int.hpp:76
IfdId
Type to specify the IFD to which a metadata belongs.
Definition: tags_int.hpp:46
std::unique_ptr< TiffComponent >(*)(uint16_t tag, IfdId group) NewTiffCompFct
Type for a function pointer for a function to create a TIFF component. Use TiffComponent::UniquePtr,...
Definition: tifffwd_int.hpp:95
Provides classes and functions to encode and decode Exif and Iptc data. The libexiv2 API consists of ...
Definition: basicio.hpp:43
EXIV2API ExifData::const_iterator make(const ExifData &ed)
Return the camera make.
Definition: easyaccess.cpp:437