Merge pull request #640 from Exiv2/IncludeExportFile_0.27

Include exiv2lib_export.h where needed and cleanup headers
This commit is contained in:
Luis Díaz Más
2019-01-11 17:50:15 +01:00
committed by GitHub
54 changed files with 110 additions and 178 deletions
+2 -1
View File
@@ -28,8 +28,9 @@
#define ASFVIDEO_HPP
// *****************************************************************************
#include "exiv2lib_export.h"
// included header files
#include "exif.hpp"
#include "image.hpp"
namespace Exiv2 {
+2 -6
View File
@@ -24,17 +24,13 @@
#define BASICIO_HPP_
// *****************************************************************************
#include "exiv2lib_export.h"
// included header files
#include "types.hpp"
#include "futils.hpp"
// + standard includes
#include <string>
#include <memory> // for std::auto_ptr
#include <fstream> // write the temporary file
#include <fcntl.h> // _O_BINARY in FileIo::FileIo
#include <ctime> // timestamp for the name of temporary file
#include <cstring> // std::memcpy
// The way to handle data from stdin or data uri path. If EXV_XPATH_MEMIO = 1,
// it uses MemIo. Otherwises, it uses FileIo.
+3 -7
View File
@@ -28,14 +28,10 @@
#define BMPIMAGE_HPP_
// *****************************************************************************
// included header files
#include "exif.hpp"
#include "iptc.hpp"
#include "image.hpp"
#include "types.hpp"
#include "exiv2lib_export.h"
// + standard includes
#include <string>
// included header files
#include "image.hpp"
// *****************************************************************************
// namespace extensions
+2
View File
@@ -30,6 +30,8 @@
#ifndef CONVERT_HPP_
#define CONVERT_HPP_
#include "exiv2lib_export.h"
// included header files
#include "config.h"
+2 -5
View File
@@ -28,13 +28,10 @@
#define CR2IMAGE_HPP_
// *****************************************************************************
#include "exiv2lib_export.h"
// included header files
#include "image.hpp"
#include "basicio.hpp"
#include "types.hpp"
// + standard includes
#include <string>
// *****************************************************************************
// namespace extensions
+3 -7
View File
@@ -30,14 +30,10 @@
#define CRWIMAGE_HPP_
// *****************************************************************************
// included header files
#include "types.hpp"
#include "image.hpp"
#include "basicio.hpp"
#include "exiv2lib_export.h"
// + standard includes
#include <iosfwd>
#include <string>
// included header files
#include "image.hpp"
// *****************************************************************************
// namespace extensions
+2 -5
View File
@@ -27,15 +27,12 @@
#define DATASETS_HPP_
// *****************************************************************************
#include "exiv2lib_export.h"
// included header files
#include "types.hpp"
#include "metadatum.hpp"
// + standard includes
#include <string>
#include <utility> // for std::pair
#include <iosfwd>
#include <memory>
#include <set>
#include <vector>
#include <map>
+2
View File
@@ -27,6 +27,8 @@
#define EASYACCESS_HPP_
// *****************************************************************************
#include "exiv2lib_export.h"
// included header files
#include "exif.hpp"
+2 -4
View File
@@ -35,12 +35,10 @@
#define EPSIMAGE_HPP_
// *****************************************************************************
#include "exiv2lib_export.h"
// included header files
#include "image.hpp"
#include "types.hpp"
// + standard includes
#include <string>
// *****************************************************************************
// namespace extensions
+2 -2
View File
@@ -29,14 +29,14 @@
#define ERROR_HPP_
// *****************************************************************************
#include "exiv2lib_export.h"
// included header files
#include "types.hpp"
// + standard includes
#include <exception>
#include <string>
#include <iosfwd>
#include <sstream>
// *****************************************************************************
// namespace extensions
+2 -4
View File
@@ -28,16 +28,14 @@
#define EXIF_HPP_
// *****************************************************************************
#include "exiv2lib_export.h"
// included header files
#include "metadatum.hpp"
#include "tags.hpp"
#include "value.hpp"
#include "types.hpp"
// + standard includes
#include <string>
#include <list>
#include <memory>
// *****************************************************************************
// namespace extensions
+1 -1
View File
@@ -28,8 +28,8 @@
#ifndef FUTILS_HPP_
#define FUTILS_HPP_
#include "config.h"
#include "exiv2lib_export.h"
#include "config.h"
#include <string>
+3 -7
View File
@@ -29,14 +29,10 @@
#define GIFIMAGE_HPP_
// *****************************************************************************
// included header files
#include "exif.hpp"
#include "iptc.hpp"
#include "image.hpp"
#include "types.hpp"
#include "exiv2lib_export.h"
// + standard includes
#include <string>
// included header files
#include "image.hpp"
// *****************************************************************************
// namespace extensions
+4 -4
View File
@@ -1,13 +1,13 @@
#ifndef HTTP_HPP_
#define HTTP_HPP_
#include "config.h"
#include <string>
#include <map>
#include <algorithm>
#include "exiv2lib_export.h"
#include "datasets.hpp"
#include <string>
namespace Exiv2 {
/*!
@brief execute an HTTP request
+2 -1
View File
@@ -24,8 +24,9 @@
#define IMAGE_HPP_
// *****************************************************************************
#include "exiv2lib_export.h"
// included header files
#include "types.hpp"
#include "basicio.hpp"
#include "exif.hpp"
#include "iptc.hpp"
+2 -7
View File
@@ -28,17 +28,12 @@
#define IPTC_HPP_
// *****************************************************************************
#include "exiv2lib_export.h"
// included header files
#include "metadatum.hpp"
#include "types.hpp"
#include "error.hpp"
#include "value.hpp"
#include "datasets.hpp"
// + standard includes
#include <string>
#include <vector>
// *****************************************************************************
// namespace extensions
namespace Exiv2 {
+3 -7
View File
@@ -26,14 +26,10 @@
#define JP2IMAGE_HPP_
// *****************************************************************************
// included header files
#include "exif.hpp"
#include "iptc.hpp"
#include "image.hpp"
#include "types.hpp"
#include "exiv2lib_export.h"
// + standard includes
#include <string>
// included header files
#include "image.hpp"
// *****************************************************************************
// namespace extensions
+2 -5
View File
@@ -34,13 +34,10 @@
#define JPGIMAGE_HPP_
// *****************************************************************************
#include "exiv2lib_export.h"
// included header files
#include "image.hpp"
#include "basicio.hpp"
#include "types.hpp"
// + standard includes
#include <string>
// *****************************************************************************
// namespace extensions
+2 -1
View File
@@ -28,8 +28,9 @@
#define MATROSKAVIDEO_HPP_
// *****************************************************************************
#include "exiv2lib_export.h"
// included header files
#include "exif.hpp"
#include "image.hpp"
// *****************************************************************************
+3 -6
View File
@@ -32,13 +32,10 @@
#define METADATUM_HPP_
// *****************************************************************************
// included header files
#include "types.hpp"
#include "value.hpp"
#include "exiv2lib_export.h"
// + standard includes
#include <string>
#include <memory>
// included header files
#include "value.hpp"
// *****************************************************************************
// namespace extensions
+2 -5
View File
@@ -29,13 +29,10 @@
#define MRWIMAGE_HPP_
// *****************************************************************************
#include "exiv2lib_export.h"
// included header files
#include "image.hpp"
#include "basicio.hpp"
#include "types.hpp"
// + standard includes
#include <string>
// *****************************************************************************
// namespace extensions
+3 -7
View File
@@ -28,14 +28,10 @@
#define ORFIMAGE_HPP_
// *****************************************************************************
// included header files
#include "image.hpp"
#include "tiffimage.hpp"
#include "basicio.hpp"
#include "types.hpp"
#include "exiv2lib_export.h"
// + standard includes
#include <string>
// included header files
#include "tiffimage.hpp"
// *****************************************************************************
// namespace extensions
+2 -5
View File
@@ -31,13 +31,10 @@
#define PGFIMAGE_HPP_
// *****************************************************************************
#include "exiv2lib_export.h"
// included header files
#include "image.hpp"
#include "basicio.hpp"
#include "types.hpp"
// + standard includes
#include <string>
// *****************************************************************************
// namespace extensions
+2 -5
View File
@@ -32,13 +32,10 @@
#define PNGIMAGE_HPP_
// *****************************************************************************
#include "exiv2lib_export.h"
// included header files
#include "image.hpp"
#include "basicio.hpp"
#include "types.hpp"
// + standard includes
#include <string>
// *****************************************************************************
// namespace extensions
+2 -6
View File
@@ -28,13 +28,9 @@
#define PREVIEW_HPP_
// *****************************************************************************
// included header files
#include "types.hpp"
#include "image.hpp"
#include "basicio.hpp"
#include "exiv2lib_export.h"
#include <string>
#include <vector>
#include "image.hpp"
// *****************************************************************************
// namespace extensions
+2 -8
View File
@@ -32,18 +32,12 @@
#define PROPERTIES_HPP_
// *****************************************************************************
#include "exiv2lib_export.h"
// included header files
#include "types.hpp"
#include "metadatum.hpp"
#include "tags.hpp"
#include "datasets.hpp"
#include "rwlock.hpp"
// + standard includes
#include <string>
#include <iosfwd>
#include <memory>
// *****************************************************************************
// namespace extensions
namespace Exiv2 {
+3 -7
View File
@@ -31,14 +31,10 @@
#define PSDIMAGE_HPP_
// *****************************************************************************
// included header files
#include "exif.hpp"
#include "iptc.hpp"
#include "image.hpp"
#include "types.hpp"
#include "exiv2lib_export.h"
// + standard includes
#include <string>
// included header files
#include "image.hpp"
// *****************************************************************************
// namespace extensions
+2
View File
@@ -28,6 +28,8 @@
#define QUICKTIMEVIDEO_HPP
// *****************************************************************************
#include "exiv2lib_export.h"
// included header files
#include "exif.hpp"
#include "image.hpp"
+2
View File
@@ -28,6 +28,8 @@
#define RAFIMAGE_HPP_
// *****************************************************************************
#include "exiv2lib_export.h"
// included header files
#include "image.hpp"
#include "basicio.hpp"
+2
View File
@@ -28,6 +28,8 @@
#define RIFFVIDEO_HPP
// *****************************************************************************
#include "exiv2lib_export.h"
// included header files
#include "exif.hpp"
#include "image.hpp"
+2 -5
View File
@@ -28,13 +28,10 @@
#define RW2IMAGE_HPP_
// *****************************************************************************
#include "exiv2lib_export.h"
// included header files
#include "image.hpp"
#include "basicio.hpp"
#include "types.hpp"
// + standard includes
#include <string>
// *****************************************************************************
// namespace extensions
+2 -1
View File
@@ -29,9 +29,10 @@
#define TAGS_HPP_
// *****************************************************************************
#include "exiv2lib_export.h"
// included header files
#include "metadatum.hpp"
#include "types.hpp"
// + standard includes
#include <string>
+3 -7
View File
@@ -30,14 +30,10 @@
#define TGAIMAGE_HPP_
// *****************************************************************************
// included header files
#include "exif.hpp"
#include "iptc.hpp"
#include "image.hpp"
#include "types.hpp"
#include "exiv2lib_export.h"
// + standard includes
#include <string>
// included header files
#include "image.hpp"
// *****************************************************************************
// namespace extensions
+2 -5
View File
@@ -25,13 +25,10 @@
#define TIFFIMAGE_HPP_
// *****************************************************************************
#include "exiv2lib_export.h"
// included header files
#include "image.hpp"
#include "basicio.hpp"
#include "types.hpp"
// + standard includes
#include <string>
// *****************************************************************************
// namespace extensions
+2 -4
View File
@@ -29,18 +29,16 @@
#ifndef TYPES_HPP_
#define TYPES_HPP_
#include "exiv2lib_export.h"
// included header files
#include "config.h"
#include "slice.hpp"
#include "exiv2lib_export.h"
#include "slice.hpp"
// + standard includes
#include <string>
#include <vector>
#include <iosfwd>
#include <limits>
#include <utility>
#include <algorithm>
#include <sstream>
+2 -4
View File
@@ -30,16 +30,14 @@
#define VALUE_HPP_
// *****************************************************************************
#include "exiv2lib_export.h"
// included header files
#include "types.hpp"
// + standard includes
#include <string>
#include <vector>
#include <map>
#include <iostream>
#include <iomanip>
#include <sstream>
#include <memory>
#include <cstring>
#include <climits>
+1 -1
View File
@@ -30,8 +30,8 @@
#ifndef VERSION_HPP_
#define VERSION_HPP_
#include "exv_conf.h"
#include "exiv2lib_export.h"
#include "exv_conf.h"
// *****************************************************************************
// included header files
+2 -1
View File
@@ -28,8 +28,9 @@
#define WEBPIMAGE_HPP
// *****************************************************************************
#include "exiv2lib_export.h"
// included header files
#include "exif.hpp"
#include "image.hpp"
// *****************************************************************************
+2 -8
View File
@@ -28,17 +28,11 @@
#define XMP_HPP_
// *****************************************************************************
#include "exiv2lib_export.h"
// included header files
#include "metadatum.hpp"
#include "properties.hpp"
#include "value.hpp"
#include "types.hpp"
#include "datasets.hpp"
#include "properties.hpp"
// + standard includes
#include <string>
#include <vector>
// *****************************************************************************
// namespace extensions
+2 -5
View File
@@ -28,13 +28,10 @@
#define XMPSIDECAR_HPP_
// *****************************************************************************
#include "exiv2lib_export.h"
// included header files
#include "image.hpp"
#include "basicio.hpp"
#include "types.hpp"
// + standard includes
#include <string>
// *****************************************************************************
// namespace extensions
+3 -1
View File
@@ -2,11 +2,13 @@
// mrwthumb.cpp
// Sample program to extract a Minolta thumbnail from the makernote
#include <cassert>
#include "error.hpp"
#include "exif.hpp"
#include "image.hpp"
#include <cassert>
#include <iostream>
int main(int argc, char* const argv[])
{
try {
+2
View File
@@ -5,6 +5,8 @@
#include <cassert>
#include <iostream>
#include <string>
#include "error.hpp"
#include "image.hpp"
int main(int argc, char* const argv[])
-8
View File
@@ -30,15 +30,7 @@
// *****************************************************************************
// included header files
// + standard includes
#include <string>
#include <map>
#include "exiv2app.hpp"
#include "image.hpp"
#include "exif.hpp"
#include "iptc.hpp"
// *****************************************************************************
// class declarations
+1
View File
@@ -28,6 +28,7 @@
#include "config.h"
#ifdef EXV_ENABLE_VIDEO
#include "error.hpp"
#include "tags.hpp"
#include "tags_int.hpp"
#include "asfvideo.hpp"
+4 -1
View File
@@ -35,10 +35,13 @@
#include <string>
#include <memory>
#include <iostream>
#include <cstring>
#include <cstring> // std::memcpy
#include <cassert>
#include <fstream> // write the temporary file
#include <fcntl.h> // _O_BINARY in FileIo::FileIo
#include <cstdio> // for remove, rename
#include <cstdlib> // for alloc, realloc, free
#include <ctime> // timestamp for the name of temporary file
#include <sys/types.h> // for stat, chmod
#include <sys/stat.h> // for stat, chmod
+3 -4
View File
@@ -1,15 +1,14 @@
#include "bigtiffimage.hpp"
#include <cassert>
#include <limits>
#include "safe_op.hpp"
#include "exif.hpp"
#include "error.hpp"
#include "image_int.hpp"
#include "enforce.hpp"
#include <cassert>
#include <limits>
#include <iostream>
namespace Exiv2
{
+1
View File
@@ -28,6 +28,7 @@
// included header files
#include "config.h"
#include "types.hpp"
#include "error.hpp"
#include "exif.hpp"
#include "iptc.hpp"
#include "xmp_exiv2.hpp"
+2
View File
@@ -3,8 +3,10 @@
#include "i18n.h" // NLS support.
#include "timegm.h"
#include "unused.h"
#include "error.hpp"
#include <cassert>
#include <ctime>
// *****************************************************************************
// local declarations
+1
View File
@@ -36,6 +36,7 @@
#include <iostream>
#include <algorithm>
#include <iterator>
#include <fstream> // write the temporary file
// *****************************************************************************
namespace {
+1
View File
@@ -47,6 +47,7 @@
#include <cstring>
#include <cassert>
#include <stdexcept>
#include <iostream>
// *****************************************************************************
// class member definitions
+1
View File
@@ -29,6 +29,7 @@
#ifdef EXV_ENABLE_VIDEO
#include "matroskavideo.hpp"
#include "error.hpp"
#include "futils.hpp"
#include "basicio.hpp"
#include "tags.hpp"
+1
View File
@@ -28,6 +28,7 @@
#include "config.h"
#ifdef EXV_ENABLE_VIDEO
#include "error.hpp"
#include "tags.hpp"
#include "tags_int.hpp"
#include "quicktimevideo.hpp"
+1
View File
@@ -28,6 +28,7 @@
#include "config.h"
#ifdef EXV_ENABLE_VIDEO
#include "error.hpp"
#include "riffvideo.hpp"
#include "futils.hpp"
#include "basicio.hpp"
+1
View File
@@ -1,5 +1,6 @@
#include "tiffimage_int.hpp"
#include "error.hpp"
#include "makernote_int.hpp"
#include "tiffvisitor_int.hpp"
#include "i18n.h" // NLS support.