Exiv2
nikonmn_int.hpp
Go to the documentation of this file.
1 // ***************************************************************** -*- C++ -*-
2 /*
3  * Copyright (C) 2004-2018 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  */
41 #ifndef NIKONMN_INT_HPP_
42 #define NIKONMN_INT_HPP_
43 
44 // *****************************************************************************
45 // included header files
46 #include "tags.hpp"
47 #include "types.hpp"
48 
49 // + standard includes
50 #include <string>
51 #include <iosfwd>
52 #include <memory>
53 
54 // *****************************************************************************
55 // namespace extensions
56 namespace Exiv2 {
57  namespace Internal {
58 
59 // *****************************************************************************
60 // class definitions
61 
64  public:
66  static const TagInfo* tagList();
67 
69 
70  static std::ostream& print0x0002(std::ostream& os, const Value& value, const ExifData*);
73  static std::ostream& print0x0007(std::ostream& os, const Value& value, const ExifData*);
75  static std::ostream& print0x0085(std::ostream& os, const Value& value, const ExifData*);
77  static std::ostream& print0x0086(std::ostream& os, const Value& value, const ExifData*);
79  static std::ostream& print0x0088(std::ostream& os, const Value& value, const ExifData*);
81  static std::ostream& printBarValue(std::ostream& os, const Value& value, const ExifData*);
83 
84  private:
86  static const TagInfo tagInfo_[];
87 
88  }; // class Nikon1MakerNote
89 
95  public:
97  static const TagInfo* tagList();
98 
100 
101  static std::ostream& print0x000a(std::ostream& os, const Value& value, const ExifData*);
104 
105  private:
107  static const TagInfo tagInfo_[];
108 
109  }; // class Nikon2MakerNote
110 
113  public:
115  static const TagInfo* tagList();
117  static const TagInfo* tagListVr();
119  static const TagInfo* tagListPc();
121  static const TagInfo* tagListWt();
123  static const TagInfo* tagListIi();
125  static const TagInfo* tagListAf();
127  static const TagInfo* tagListAf21();
129  static const TagInfo* tagListAf22();
131  static const TagInfo* tagListAFT();
133  static const TagInfo* tagListFi();
135  static const TagInfo* tagListMe();
137  static const TagInfo* tagListFl1();
139  static const TagInfo* tagListFl2();
141  static const TagInfo* tagListFl3();
143  static const TagInfo* tagListSi1();
145  static const TagInfo* tagListSi2();
147  static const TagInfo* tagListSi3();
149  static const TagInfo* tagListSi4();
151  static const TagInfo* tagListSi5();
153  static const TagInfo* tagListCb1();
155  static const TagInfo* tagListCb2();
157  static const TagInfo* tagListCb2a();
159  static const TagInfo* tagListCb2b();
161  static const TagInfo* tagListCb3();
163  static const TagInfo* tagListCb4();
165  static const TagInfo* tagListLd1();
167  static const TagInfo* tagListLd2();
169  static const TagInfo* tagListLd3();
170 
172 
173  static std::ostream& print0x0002(std::ostream& os, const Value& value, const ExifData*);
176  static std::ostream& print0x0007(std::ostream& os, const Value& value, const ExifData*);
178  static std::ostream& print0x0083(std::ostream& os, const Value& value, const ExifData*);
180  static std::ostream& print0x0084(std::ostream& os, const Value& value, const ExifData*);
182  static std::ostream& print0x0085(std::ostream& os, const Value& value, const ExifData*);
184  static std::ostream& print0x0086(std::ostream& os, const Value& value, const ExifData*);
186  static std::ostream& print0x0088(std::ostream& os, const Value& value, const ExifData*);
188  static std::ostream& print0x0089(std::ostream& os, const Value& value, const ExifData* metadata);
190  static std::ostream& print0x008b(std::ostream& os, const Value& value, const ExifData*);
192  static std::ostream& printAfPointsInFocus(std::ostream& os, const Value& value, const ExifData* metadata);
194  static std::ostream& printLensId(std::ostream& os, const Value& value, const ExifData* metadata, const std::string& group);
195  static std::ostream& printLensId1(std::ostream& os, const Value& value, const ExifData* metadata);
196  static std::ostream& printLensId2(std::ostream& os, const Value& value, const ExifData* metadata);
197  static std::ostream& printLensId3(std::ostream& os, const Value& value, const ExifData* metadata);
199  static std::ostream& printFocusDistance(std::ostream& os, const Value& value, const ExifData*);
201  static std::ostream& printAperture(std::ostream& os, const Value& value, const ExifData*);
203  static std::ostream& printFocal(std::ostream& os, const Value& value, const ExifData*);
205  static std::ostream& printFStops(std::ostream& os, const Value& value, const ExifData*);
207  static std::ostream& printExitPupilPosition(std::ostream& os, const Value& value, const ExifData*);
209  static std::ostream& print0x009a(std::ostream& os, const Value& value, const ExifData*);
211  static std::ostream& print0x009e(std::ostream& os, const Value& value, const ExifData*);
213  static std::ostream& printIiIso(std::ostream& os, const Value& value, const ExifData*);
215  static std::ostream& printFlashFocalLength(std::ostream& os, const Value& value, const ExifData*);
217  static std::ostream& printRepeatingFlashRate(std::ostream& os, const Value& value, const ExifData*);
219  static std::ostream& printRepeatingFlashCount(std::ostream& os, const Value& value, const ExifData*);
221  static std::ostream& printTimeZone(std::ostream& os, const Value& value, const ExifData*);
223  static std::ostream& printPictureControl(std::ostream& os, const Value& value, const ExifData*);
225 
226  private:
228  static const TagInfo tagInfo_[];
230  static const TagInfo tagInfoVr_[];
232  static const TagInfo tagInfoPc_[];
234  static const TagInfo tagInfoWt_[];
236  static const TagInfo tagInfoIi_[];
238  static const TagInfo tagInfoAf_[];
240  static const TagInfo tagInfoAf21_[];
242  static const TagInfo tagInfoAf22_[];
244  static const TagInfo tagInfoAFT_[];
246  static const TagInfo tagInfoFi_[];
248  static const TagInfo tagInfoMe_[];
250  static const TagInfo tagInfoFl1_[];
252  static const TagInfo tagInfoFl2_[];
254  static const TagInfo tagInfoFl3_[];
256  static const TagInfo tagInfoSi1_[];
258  static const TagInfo tagInfoSi2_[];
260  static const TagInfo tagInfoSi3_[];
262  static const TagInfo tagInfoSi4_[];
264  static const TagInfo tagInfoSi5_[];
266  static const TagInfo tagInfoCb1_[];
268  static const TagInfo tagInfoCb2_[];
270  static const TagInfo tagInfoCb2a_[];
272  static const TagInfo tagInfoCb2b_[];
274  static const TagInfo tagInfoCb3_[];
276  static const TagInfo tagInfoCb4_[];
278  static const TagInfo tagInfoLd1_[];
280  static const TagInfo tagInfoLd2_[];
282  static const TagInfo tagInfoLd3_[];
283 
284  }; // class Nikon3MakerNote
285 
286 }} // namespace Internal, Exiv2
287 
288 #endif // #ifndef NIKONMN_INT_HPP_
static std::ostream & print0x009a(std::ostream &os, const Value &value, const ExifData *)
Print sensor pixel size.
Definition: nikonmn_int.cpp:2833
static const TagInfo * tagListFi()
Return read-only list of built-in File Info tags.
Definition: nikonmn_int.cpp:949
static const TagInfo * tagListAFT()
Return read-only list of built-in AF Fine Tune tags.
Definition: nikonmn_int.cpp:763
A container for Exif data. This is a top-level class of the Exiv2 library. The container holds Exifda...
Definition: exif.hpp:434
static std::ostream & printAperture(std::ostream &os, const Value &value, const ExifData *)
Print lens aperture value.
Definition: nikonmn_int.cpp:2657
static std::ostream & print0x0085(std::ostream &os, const Value &value, const ExifData *)
Print manual focus distance.
Definition: nikonmn_int.cpp:1568
static const TagInfo * tagList()
Return read-only list of built-in Nikon2 tags.
Definition: nikonmn_int.cpp:526
static std::ostream & print0x008b(std::ostream &os, const Value &value, const ExifData *)
Print number of lens stops.
Definition: nikonmn_int.cpp:1742
static std::ostream & print0x0086(std::ostream &os, const Value &value, const ExifData *)
Print digital zoom setting.
Definition: nikonmn_int.cpp:344
static const TagInfo * tagListFl3()
Return read-only list of built-in Flash Info 3 tags.
Definition: nikonmn_int.cpp:1133
static const TagInfo * tagList()
Return read-only list of built-in Nikon3 tags.
Definition: nikonmn_int.cpp:654
static const TagInfo * tagListFl2()
Return read-only list of built-in Flash Info 2 tags.
Definition: nikonmn_int.cpp:1113
static std::ostream & print0x0085(std::ostream &os, const Value &value, const ExifData *)
Print manual focus distance.
Definition: nikonmn_int.cpp:320
static const TagInfo * tagListAf21()
Return read-only list of built-in Auto Focus 2 tags.
Definition: nikonmn_int.cpp:910
static std::ostream & print0x0089(std::ostream &os, const Value &value, const ExifData *metadata)
Print shooting mode.
Definition: nikonmn_int.cpp:1712
static std::ostream & printIiIso(std::ostream &os, const Value &value, const ExifData *)
Print Exif.NikonIi.ISO(2)
Definition: nikonmn_int.cpp:1467
static std::ostream & print0x0088(std::ostream &os, const Value &value, const ExifData *)
Print AF focus position.
Definition: nikonmn_int.cpp:368
static std::ostream & print0x0007(std::ostream &os, const Value &value, const ExifData *)
Print autofocus mode.
Definition: nikonmn_int.cpp:308
static const TagInfo * tagListMe()
Return read-only list of built-in Multi Exposure tags.
Definition: nikonmn_int.cpp:971
static const TagInfo * tagListSi2()
Return read-only list of built-in Shot Info D40 tags.
Definition: nikonmn_int.cpp:1160
static std::ostream & printExitPupilPosition(std::ostream &os, const Value &value, const ExifData *)
Print exit pupil position.
Definition: nikonmn_int.cpp:2710
static const TagInfo * tagListPc()
Return read-only list of built-in Picture Control tags.
Definition: nikonmn_int.cpp:742
Type definitions for Exiv2 and related functionality.
static std::ostream & printAfPointsInFocus(std::ostream &os, const Value &value, const ExifData *metadata)
Print AF Points In Focus.
Definition: nikonmn_int.cpp:1685
static const TagInfo * tagListAf()
Return read-only list of built-in Auto Focus tags.
Definition: nikonmn_int.cpp:875
static const TagInfo * tagListSi5()
Return read-only list of built-in Shot Info tags.
Definition: nikonmn_int.cpp:1315
static std::ostream & print0x0007(std::ostream &os, const Value &value, const ExifData *)
Print autofocus mode.
Definition: nikonmn_int.cpp:1488
static const TagInfo * tagListFl1()
Return read-only list of built-in Flash Info 1 tags.
Definition: nikonmn_int.cpp:1093
static std::ostream & printRepeatingFlashCount(std::ostream &os, const Value &value, const ExifData *)
Print repeating flash count.
Definition: nikonmn_int.cpp:2763
static const TagInfo * tagListCb2a()
Return read-only list of built-in Color Balance 2a tags.
Definition: nikonmn_int.cpp:1354
static std::ostream & printFStops(std::ostream &os, const Value &value, const ExifData *)
Print lens f-stops.
Definition: nikonmn_int.cpp:2691
Exif tag and type information.
static const TagInfo * tagListCb4()
Return read-only list of built-in Color Balance 4 tags.
Definition: nikonmn_int.cpp:1393
static std::ostream & printFlashFocalLength(std::ostream &os, const Value &value, const ExifData *)
Print flash focal length.
Definition: nikonmn_int.cpp:2729
static const TagInfo * tagListIi()
Return read-only list of built-in ISO info tags.
Definition: nikonmn_int.cpp:821
static std::ostream & print0x000a(std::ostream &os, const Value &value, const ExifData *)
Print digital zoom setting.
Definition: nikonmn_int.cpp:531
static const TagInfo * tagList()
Return read-only list of built-in Nikon1 tags.
Definition: nikonmn_int.cpp:264
static std::ostream & print0x0083(std::ostream &os, const Value &value, const ExifData *)
Print lens type.
Definition: nikonmn_int.cpp:1500
static std::ostream & printPictureControl(std::ostream &os, const Value &value, const ExifData *)
Print picture control value.
Definition: nikonmn_int.cpp:2801
static const TagInfo * tagListLd3()
Return read-only list of built-in Lens Data 3 tags.
Definition: nikonmn_int.cpp:1462
static const TagInfo * tagListAf22()
Return read-only list of built-in Auto Focus 2 tags.
Definition: nikonmn_int.cpp:934
static std::ostream & printBarValue(std::ostream &os, const Value &value, const ExifData *)
Print BarometerInfo.
Definition: nikonmn_int.cpp:292
A MakerNote format used by Nikon cameras, such as the E990 and D1.
Definition: nikonmn_int.hpp:63
static const TagInfo * tagListSi4()
Return read-only list of built-in Shot Info D300 (b) tags.
Definition: nikonmn_int.cpp:1280
static const TagInfo * tagListLd1()
Return read-only list of built-in Lens Data 1 tags.
Definition: nikonmn_int.cpp:1412
static std::ostream & printFocal(std::ostream &os, const Value &value, const ExifData *)
Print lens focal length.
Definition: nikonmn_int.cpp:2676
static const TagInfo * tagListCb3()
Return read-only list of built-in Color Balance 3 tags.
Definition: nikonmn_int.cpp:1380
static const TagInfo * tagListLd2()
Return read-only list of built-in Lens Data 2 tags.
Definition: nikonmn_int.cpp:1437
IPTC string type.
Definition: types.hpp:147
static std::ostream & print0x0086(std::ostream &os, const Value &value, const ExifData *)
Print digital zoom setting.
Definition: nikonmn_int.cpp:1592
static const TagInfo * tagListVr()
Return read-only list of built-in Vibration Reduction tags.
Definition: nikonmn_int.cpp:686
static const TagInfo * tagListCb2b()
Return read-only list of built-in Color Balance 2b tags.
Definition: nikonmn_int.cpp:1367
Common interface for all types of values used with metadata.
Definition: value.hpp:60
static std::ostream & print0x009e(std::ostream &os, const Value &value, const ExifData *)
Print retouch history.
Definition: nikonmn_int.cpp:2845
static std::ostream & printFocusDistance(std::ostream &os, const Value &value, const ExifData *)
Print focus distance.
Definition: nikonmn_int.cpp:2638
static const TagInfo * tagListCb2()
Return read-only list of built-in Color Balance 2 tags.
Definition: nikonmn_int.cpp:1341
static std::ostream & print0x0002(std::ostream &os, const Value &value, const ExifData *)
Print ISO setting.
Definition: nikonmn_int.cpp:1475
static const TagInfo * tagListSi3()
Return read-only list of built-in Shot Info D300 (a) tags.
Definition: nikonmn_int.cpp:1220
Provides classes and functions to encode and decode Exif and Iptc data. The libexiv2 API consists of ...
Definition: asfvideo.hpp:36
static std::ostream & print0x0088(std::ostream &os, const Value &value, const ExifData *)
Print AF point.
Definition: nikonmn_int.cpp:1616
static const TagInfo * tagListWt()
Return read-only list of built-in World time tags.
Definition: nikonmn_int.cpp:777
static const TagInfo * tagListSi1()
Return read-only list of built-in Shot Info D80 tags.
Definition: nikonmn_int.cpp:1146
static std::ostream & print0x0084(std::ostream &os, const Value &value, const ExifData *)
Print lens information.
Definition: nikonmn_int.cpp:1534
Tag information.
Definition: tags.hpp:82
static std::ostream & printTimeZone(std::ostream &os, const Value &value, const ExifData *)
Print time zone.
Definition: nikonmn_int.cpp:2779
A third MakerNote format used by Nikon cameras, e.g., E5400, SQ, D2H, D70.
Definition: nikonmn_int.hpp:112
A second MakerNote format used by Nikon cameras, including the E700, E800, E900, E900S, E910, E950.
Definition: nikonmn_int.hpp:94
static std::ostream & printRepeatingFlashRate(std::ostream &os, const Value &value, const ExifData *)
Print repeating flash rate.
Definition: nikonmn_int.cpp:2747
static const TagInfo * tagListCb1()
Return read-only list of built-in Color Balance 1 tags.
Definition: nikonmn_int.cpp:1328
static std::ostream & print0x0002(std::ostream &os, const Value &value, const ExifData *)
Print ISO setting.
Definition: nikonmn_int.cpp:269
static std::ostream & printLensId(std::ostream &os, const Value &value, const ExifData *metadata, const std::string &group)
Print lens name.
Definition: nikonmn_int.cpp:1792