File tree Expand file tree Collapse file tree 8 files changed +50
-13
lines changed
src/py3exiv2bind/core/glue Expand file tree Collapse file tree 8 files changed +50
-13
lines changed Original file line number Diff line number Diff line change 44
55#include " ExifStrategy.h"
66#include " make_dictionary.h"
7- #include < iostream>
7+ #include < string>
8+ #include < unordered_map>
9+
10+ #include < exiv2/image.hpp>
811
912std::unordered_map<std::string, std::string> ExifStrategy::load (const Exiv2::Image &image){
1013 return make_dictionary (image.exifData ());
Original file line number Diff line number Diff line change 44
55#include " IPTC_Strategy.h"
66#include " make_dictionary.h"
7- #include < exiv2/error.hpp>
8- #include < iostream>
7+
8+ #include < exiv2/image.hpp>
9+
10+ #include < string>
11+ #include < unordered_map>
12+
913
1014std::unordered_map<std::string, std::string> IPTC_Strategy::load (const Exiv2::Image &image){
1115 return make_dictionary (image.iptcData ());
Original file line number Diff line number Diff line change 33//
44
55#include " Image.h"
6- #include " MetadataProcessor.h"
7- #include " glue.h"
86#include " glue_execeptions.h"
9- #include < cassert>
7+ #include " MetadataProcessor.h"
8+ #include " MetadataStrategies.h"
9+
1010#include < exiv2/error.hpp>
11+ #include < exiv2/image.hpp>
12+ #include < exiv2/types.hpp>
13+
14+ #include < cassert>
1115#include < iostream>
16+ #include < list>
17+ #include < memory>
1218#include < sstream>
19+ #include < stdexcept>
1320#include < string>
21+ #include < unordered_map>
1422
1523std::ostringstream warning_log;
1624std::ostringstream error_log;
Original file line number Diff line number Diff line change 22// Created by hborcher on 10/11/2017.
33//
44
5- #include " MetadataProcessor.h"
65#include " ExifStrategy.h"
76#include " IPTC_Strategy.h"
7+ #include " MetadataProcessor.h"
8+ #include " MetadataStrategies.h"
89#include " XmpStrategy.h"
910
11+ #include < exiv2/image.hpp>
12+
13+ #include < memory>
14+ #include < string>
15+ #include < unordered_map>
16+
1017const std::unordered_map<std::string, std::string> &MetadataProcessor::getMetadata () const {
1118 return metadata;
1219}
Original file line number Diff line number Diff line change 66#define PYEXIV2BIND_METADATA_PROCESSOR_H
77
88
9- #include < string>
10- #include < map>
119#include < memory>
10+ #include < string>
11+ #include < unordered_map>
12+
1213#include " AbsMetadataStrategy.h"
1314#include " MetadataStrategies.h"
1415
@@ -19,7 +20,7 @@ struct MetadataProcessor {
1920public:
2021 void build (const Exiv2::Image &image);
2122 const std::unordered_map<std::string, std::string> &getMetadata () const ;
22- void set_output_format (MetadataStrategies);
23+ void set_output_format (MetadataStrategies metadata_type );
2324};
2425
2526
Original file line number Diff line number Diff line change 44
55#include " XmpStrategy.h"
66#include " make_dictionary.h"
7- #include < iostream>
7+
8+ #include < exiv2/image.hpp>
9+
10+ #include < string>
11+ #include < unordered_map>
12+
813std::unordered_map<std::string, std::string> XmpStrategy::load (const Exiv2::Image &image){
914 return make_dictionary (image.xmpData ());
1015}
Original file line number Diff line number Diff line change 22// Created by hborcher on 10/4/2017.
33//
44#include " glue.h"
5- #include < exiv2/exiv2.hpp>
5+
6+
7+ #include < exiv2/exif.hpp>
8+ #include < exiv2/image.hpp>
9+ #include < exiv2/version.hpp>
10+
11+ #include < memory>
12+ #include < string>
13+
614using Exiv2::Image;
715using Exiv2::ImageFactory;
16+
817std::string exiv2_version () {
918 return Exiv2::versionString ();
1019}
Original file line number Diff line number Diff line change 55#ifndef SUPERBUILD_GLUE_H
66#define SUPERBUILD_GLUE_H
77
8- #include < string>
98#include < map>
9+ #include < string>
1010
1111struct metadata_chunk {
1212
You can’t perform that action at this time.
0 commit comments