Skip to content

Commit

Permalink
cleanup header inclusions in API
Browse files Browse the repository at this point in the history
  • Loading branch information
piponazo committed Jan 11, 2019
1 parent 4bd7e9e commit 6f8d8e3
Show file tree
Hide file tree
Showing 49 changed files with 26 additions and 169 deletions.
1 change: 0 additions & 1 deletion include/exiv2/asfvideo.hpp
Expand Up @@ -31,7 +31,6 @@
#include "exiv2lib_export.h"

// included header files
#include "exif.hpp"
#include "image.hpp"

namespace Exiv2 {
Expand Down
6 changes: 0 additions & 6 deletions include/exiv2/basicio.hpp
Expand Up @@ -28,15 +28,9 @@

// 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.
Expand Down
6 changes: 0 additions & 6 deletions include/exiv2/bmpimage.hpp
Expand Up @@ -31,13 +31,7 @@
#include "exiv2lib_export.h"

// included header files
#include "exif.hpp"
#include "iptc.hpp"
#include "image.hpp"
#include "types.hpp"

// + standard includes
#include <string>

// *****************************************************************************
// namespace extensions
Expand Down
5 changes: 0 additions & 5 deletions include/exiv2/cr2image.hpp
Expand Up @@ -32,11 +32,6 @@

// included header files
#include "image.hpp"
#include "basicio.hpp"
#include "types.hpp"

// + standard includes
#include <string>

// *****************************************************************************
// namespace extensions
Expand Down
6 changes: 0 additions & 6 deletions include/exiv2/crwimage.hpp
Expand Up @@ -33,13 +33,7 @@
#include "exiv2lib_export.h"

// included header files
#include "types.hpp"
#include "image.hpp"
#include "basicio.hpp"

// + standard includes
#include <iosfwd>
#include <string>

// *****************************************************************************
// namespace extensions
Expand Down
5 changes: 0 additions & 5 deletions include/exiv2/datasets.hpp
Expand Up @@ -30,14 +30,9 @@
#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>
Expand Down
4 changes: 0 additions & 4 deletions include/exiv2/epsimage.hpp
Expand Up @@ -39,10 +39,6 @@

// included header files
#include "image.hpp"
#include "types.hpp"

// + standard includes
#include <string>

// *****************************************************************************
// namespace extensions
Expand Down
2 changes: 0 additions & 2 deletions include/exiv2/error.hpp
Expand Up @@ -37,8 +37,6 @@
// + standard includes
#include <exception>
#include <string>
#include <iosfwd>
#include <sstream>

// *****************************************************************************
// namespace extensions
Expand Down
4 changes: 0 additions & 4 deletions include/exiv2/exif.hpp
Expand Up @@ -33,13 +33,9 @@
// 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
Expand Down
2 changes: 1 addition & 1 deletion include/exiv2/futils.hpp
Expand Up @@ -28,8 +28,8 @@
#ifndef FUTILS_HPP_
#define FUTILS_HPP_

#include "config.h"
#include "exiv2lib_export.h"
#include "config.h"

#include <string>

Expand Down
6 changes: 0 additions & 6 deletions include/exiv2/gifimage.hpp
Expand Up @@ -32,13 +32,7 @@
#include "exiv2lib_export.h"

// included header files
#include "exif.hpp"
#include "iptc.hpp"
#include "image.hpp"
#include "types.hpp"

// + standard includes
#include <string>

// *****************************************************************************
// namespace extensions
Expand Down
3 changes: 0 additions & 3 deletions include/exiv2/http.hpp
Expand Up @@ -3,12 +3,9 @@

#include "exiv2lib_export.h"

#include "config.h"
#include "datasets.hpp"

#include <string>
#include <map>
#include <algorithm>


namespace Exiv2 {
Expand Down
1 change: 0 additions & 1 deletion include/exiv2/image.hpp
Expand Up @@ -27,7 +27,6 @@
#include "exiv2lib_export.h"

// included header files
#include "types.hpp"
#include "basicio.hpp"
#include "exif.hpp"
#include "iptc.hpp"
Expand Down
7 changes: 0 additions & 7 deletions include/exiv2/iptc.hpp
Expand Up @@ -32,15 +32,8 @@

// 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 {
Expand Down
6 changes: 0 additions & 6 deletions include/exiv2/jp2image.hpp
Expand Up @@ -29,13 +29,7 @@
#include "exiv2lib_export.h"

// included header files
#include "exif.hpp"
#include "iptc.hpp"
#include "image.hpp"
#include "types.hpp"

// + standard includes
#include <string>

// *****************************************************************************
// namespace extensions
Expand Down
5 changes: 0 additions & 5 deletions include/exiv2/jpgimage.hpp
Expand Up @@ -38,11 +38,6 @@

// included header files
#include "image.hpp"
#include "basicio.hpp"
#include "types.hpp"

// + standard includes
#include <string>

// *****************************************************************************
// namespace extensions
Expand Down
1 change: 0 additions & 1 deletion include/exiv2/matroskavideo.hpp
Expand Up @@ -31,7 +31,6 @@
#include "exiv2lib_export.h"

// included header files
#include "exif.hpp"
#include "image.hpp"

// *****************************************************************************
Expand Down
5 changes: 0 additions & 5 deletions include/exiv2/metadatum.hpp
Expand Up @@ -35,13 +35,8 @@
#include "exiv2lib_export.h"

// included header files
#include "types.hpp"
#include "value.hpp"

// + standard includes
#include <string>
#include <memory>

// *****************************************************************************
// namespace extensions
namespace Exiv2 {
Expand Down
5 changes: 0 additions & 5 deletions include/exiv2/mrwimage.hpp
Expand Up @@ -33,11 +33,6 @@

// included header files
#include "image.hpp"
#include "basicio.hpp"
#include "types.hpp"

// + standard includes
#include <string>

// *****************************************************************************
// namespace extensions
Expand Down
6 changes: 0 additions & 6 deletions include/exiv2/orfimage.hpp
Expand Up @@ -31,13 +31,7 @@
#include "exiv2lib_export.h"

// included header files
#include "image.hpp"
#include "tiffimage.hpp"
#include "basicio.hpp"
#include "types.hpp"

// + standard includes
#include <string>

// *****************************************************************************
// namespace extensions
Expand Down
5 changes: 0 additions & 5 deletions include/exiv2/pgfimage.hpp
Expand Up @@ -35,11 +35,6 @@

// included header files
#include "image.hpp"
#include "basicio.hpp"
#include "types.hpp"

// + standard includes
#include <string>

// *****************************************************************************
// namespace extensions
Expand Down
5 changes: 0 additions & 5 deletions include/exiv2/pngimage.hpp
Expand Up @@ -36,11 +36,6 @@

// included header files
#include "image.hpp"
#include "basicio.hpp"
#include "types.hpp"

// + standard includes
#include <string>

// *****************************************************************************
// namespace extensions
Expand Down
6 changes: 0 additions & 6 deletions include/exiv2/preview.hpp
Expand Up @@ -30,13 +30,7 @@
// *****************************************************************************
#include "exiv2lib_export.h"

// included header files
#include "types.hpp"
#include "image.hpp"
#include "basicio.hpp"

#include <string>
#include <vector>

// *****************************************************************************
// namespace extensions
Expand Down
8 changes: 0 additions & 8 deletions include/exiv2/properties.hpp
Expand Up @@ -35,17 +35,9 @@
#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 {
Expand Down
6 changes: 0 additions & 6 deletions include/exiv2/psdimage.hpp
Expand Up @@ -34,13 +34,7 @@
#include "exiv2lib_export.h"

// included header files
#include "exif.hpp"
#include "iptc.hpp"
#include "image.hpp"
#include "types.hpp"

// + standard includes
#include <string>

// *****************************************************************************
// namespace extensions
Expand Down
5 changes: 0 additions & 5 deletions include/exiv2/rw2image.hpp
Expand Up @@ -32,11 +32,6 @@

// included header files
#include "image.hpp"
#include "basicio.hpp"
#include "types.hpp"

// + standard includes
#include <string>

// *****************************************************************************
// namespace extensions
Expand Down
1 change: 0 additions & 1 deletion include/exiv2/tags.hpp
Expand Up @@ -33,7 +33,6 @@

// included header files
#include "metadatum.hpp"
#include "types.hpp"

// + standard includes
#include <string>
Expand Down
6 changes: 0 additions & 6 deletions include/exiv2/tgaimage.hpp
Expand Up @@ -33,13 +33,7 @@
#include "exiv2lib_export.h"

// included header files
#include "exif.hpp"
#include "iptc.hpp"
#include "image.hpp"
#include "types.hpp"

// + standard includes
#include <string>

// *****************************************************************************
// namespace extensions
Expand Down
5 changes: 0 additions & 5 deletions include/exiv2/tiffimage.hpp
Expand Up @@ -29,11 +29,6 @@

// included header files
#include "image.hpp"
#include "basicio.hpp"
#include "types.hpp"

// + standard includes
#include <string>

// *****************************************************************************
// namespace extensions
Expand Down
6 changes: 2 additions & 4 deletions include/exiv2/types.hpp
Expand Up @@ -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>

Expand Down
4 changes: 0 additions & 4 deletions include/exiv2/value.hpp
Expand Up @@ -36,12 +36,8 @@
#include "types.hpp"

// + standard includes
#include <string>
#include <vector>
#include <map>
#include <iostream>
#include <iomanip>
#include <sstream>
#include <memory>
#include <cstring>
#include <climits>
Expand Down

0 comments on commit 6f8d8e3

Please sign in to comment.