Skip to content

Commit

Permalink
Merge pull request #1446 from Framstag/io_package
Browse files Browse the repository at this point in the history
Move file io stuff to io "package"
  • Loading branch information
Framstag authored Jun 11, 2023
2 parents 1bceba6 + 76809a6 commit 0fc6c75
Show file tree
Hide file tree
Showing 120 changed files with 319 additions and 268 deletions.
6 changes: 2 additions & 4 deletions BasemapImport/src/BasemapImport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,19 @@
*/

#include <cstring>
#include <cstdio>

#include <iostream>
#include <memory>
#include <sstream>
#include <string>
#include <vector>
#include <algorithm>

#include <osmscout/projection/MercatorProjection.h>

#include <osmscout/util/CmdLineParsing.h>
#include <osmscout/util/File.h>

#include <osmscoutimport/Import.h>
#include <osmscout/io/File.h>

#include <osmscoutimport/ShapeFileScanner.h>

#include <osmscoutimport/WaterIndexProcessor.h>
Expand Down
3 changes: 2 additions & 1 deletion Import/src/Import.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
#include <optional>

#include <osmscout/util/CmdLineParsing.h>
#include <osmscout/util/File.h>

#include <osmscout/io/File.h>

#include <osmscoutimport/Import.h>

Expand Down
3 changes: 2 additions & 1 deletion PublicTransportMap/src/PublicTransportMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
#include <osmscout/feature/NameFeature.h>

#include <osmscout/util/CmdLineParsing.h>
#include <osmscout/util/FileScanner.h>

#include <osmscout/io/FileScanner.h>

/*
* Example:
Expand Down
1 change: 0 additions & 1 deletion Tests/src/CachePerformance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <vector>

#include <osmscout/util/Cache.h>
#include <osmscout/util/FileScanner.h>
#include <osmscout/util/StopClock.h>
#include <osmscout/util/CmdLineParsing.h>

Expand Down
1 change: 0 additions & 1 deletion Tests/src/CalculateResolution.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include <cstddef>
#include <iostream>

#include <osmscout/util/File.h>
#include <osmscout/util/Geometry.h>
#include <osmscout/util/Number.h>

Expand Down
2 changes: 1 addition & 1 deletion Tests/src/File.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <iostream>
#include <utility>

#include <osmscout/util/File.h>
#include <osmscout/io/File.h>

#include <TestMain.h>

Expand Down
4 changes: 2 additions & 2 deletions Tests/src/FileScannerWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#include <iostream>
#include <limits>

#include <osmscout/util/FileScanner.h>
#include <osmscout/util/FileWriter.h>
#include <osmscout/io/FileScanner.h>
#include <osmscout/io/FileWriter.h>

#include <TestMain.h>

Expand Down
3 changes: 2 additions & 1 deletion Tests/src/MultiDBRouting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
#include <osmscout/routing/MultiDBRoutingService.h>

#include <osmscout/util/CmdLineParsing.h>
#include <osmscout/util/FileScanner.h>

#include <osmscout/io/FileScanner.h>

struct Arguments
{
Expand Down
4 changes: 3 additions & 1 deletion Tests/src/OSTAndOSSCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@
#include <osmscout/TypeConfig.h>
#include <osmscoutmap/StyleConfig.h>

#include <osmscout/util/File.h>
#include <osmscout/io/File.h>

#include <osmscout/util/CmdLineParsing.h>

#include <iomanip>

using namespace std;
Expand Down
5 changes: 3 additions & 2 deletions Tests/src/ReaderScannerPerformance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@

#include <osmscout/Way.h>

#include <osmscout/util/File.h>
#include <osmscout/util/FileScanner.h>
#include <osmscout/io/File.h>
#include <osmscout/io/FileScanner.h>

#include <osmscout/util/StopClock.h>

/**
Expand Down
3 changes: 2 additions & 1 deletion libosmscout-gpx/include/osmscoutgpx/Export.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
#include <osmscoutgpx/Import.h>
#include <osmscoutgpx/GPXImportExport.h>

#include <osmscout/util/File.h>
#include <osmscout/io/File.h>

#include <osmscout/util/Exception.h>
#include <osmscout/util/Breaker.h>

Expand Down
3 changes: 2 additions & 1 deletion libosmscout-gpx/include/osmscoutgpx/Import.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
#include <osmscoutgpx/Utils.h>
#include <osmscoutgpx/GPXImportExport.h>

#include <osmscout/util/File.h>
#include <osmscout/io/File.h>

#include <osmscout/util/Exception.h>
#include <osmscout/util/Breaker.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,15 @@

#include <osmscout/Pixel.h>

#include <osmscout/util/FileWriter.h>
#include <osmscout/TypeInfoSet.h>

#include <osmscout/io/File.h>
#include <osmscout/io/FileWriter.h>

#include <osmscout/util/TileId.h>
#include <osmscout/util/String.h>
#include <osmscout/util/File.h>

#include <osmscout/system/Compiler.h>
#include <osmscout/TypeInfoSet.h>

namespace osmscout {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <osmscout/Area.h>
#include <osmscout/Pixel.h>

#include <osmscout/util/FileWriter.h>
#include <osmscout/io/FileWriter.h>
#include <osmscout/util/Geometry.h>

#include <osmscoutimport/Import.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
#include <osmscout/Pixel.h>
#include <osmscout/Route.h>

#include <osmscout/util/FileWriter.h>
#include <osmscout/io/FileWriter.h>

#include <osmscout/util/Geometry.h>
#include <osmscout/util/TileId.h>

Expand Down
3 changes: 2 additions & 1 deletion libosmscout-import/include/osmscoutimport/GenAreaWayIndex.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
#include <osmscout/Pixel.h>
#include <osmscout/Way.h>

#include <osmscout/util/FileWriter.h>
#include <osmscout/io/FileWriter.h>

#include <osmscout/util/Geometry.h>
#include <osmscout/util/TileId.h>

Expand Down
6 changes: 3 additions & 3 deletions libosmscout-import/include/osmscoutimport/GenNumericIndex.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@

#include <vector>

#include <osmscout/io/File.h>
#include <osmscout/io/FileScanner.h>
#include <osmscout/io/FileWriter.h>

#include <osmscout/util/Cache.h>
#include <osmscout/util/File.h>
#include <osmscout/util/FileScanner.h>
#include <osmscout/util/FileWriter.h>
#include <osmscout/util/Number.h>
#include <osmscout/util/Progress.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@

#include <osmscout/Area.h>

#include <osmscout/util/FileScanner.h>
#include <osmscout/util/FileWriter.h>
#include <osmscout/io/FileScanner.h>
#include <osmscout/io/FileWriter.h>

#include <osmscout/system/Compiler.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
#include <osmscout/Area.h>
#include <osmscout/Way.h>

#include <osmscout/util/FileScanner.h>
#include <osmscout/util/FileWriter.h>
#include <osmscout/io/FileScanner.h>
#include <osmscout/io/FileWriter.h>

#include <osmscout/system/Compiler.h>

Expand Down
6 changes: 3 additions & 3 deletions libosmscout-import/include/osmscoutimport/GenRouteDat.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
#include <unordered_map>
#include <vector>

#include <osmscout/NumericIndex.h>

#include <osmscout/OSMScoutTypes.h>

#include <osmscout/FeatureReader.h>
Expand All @@ -44,7 +42,9 @@
#include <osmscout/routing/RouteNode.h>
#include <osmscout/routing/TurnRestriction.h>

#include <osmscout/util/FileWriter.h>
#include <osmscout/io/NumericIndex.h>
#include <osmscout/io/FileWriter.h>

#include <osmscout/util/NodeUseMap.h>

#include <osmscout/system/Compiler.h>
Expand Down
2 changes: 1 addition & 1 deletion libosmscout-import/include/osmscoutimport/GenWayWayDat.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#include <osmscout/TypeInfoSet.h>

#include <osmscout/NumericIndex.h>
#include <osmscout/io/NumericIndex.h>

#include <osmscout/routing/TurnRestriction.h>

Expand Down
3 changes: 2 additions & 1 deletion libosmscout-import/include/osmscoutimport/Preprocess.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
#include <osmscout/Tag.h>
#include <osmscout/routing/TurnRestriction.h>

#include <osmscout/util/FileWriter.h>
#include <osmscout/io/FileWriter.h>

#include <osmscout/util/WorkQueue.h>

#include <osmscoutimport/Import.h>
Expand Down
4 changes: 2 additions & 2 deletions libosmscout-import/include/osmscoutimport/RawCoastline.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@

#include <osmscout/Tag.h>

#include <osmscout/util/FileScanner.h>
#include <osmscout/util/FileWriter.h>
#include <osmscout/io/FileScanner.h>
#include <osmscout/io/FileWriter.h>

#include <osmscout/system/Compiler.h>

Expand Down
4 changes: 2 additions & 2 deletions libosmscout-import/include/osmscoutimport/RawCoord.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
#include <osmscout/GeoCoord.h>
#include <osmscout/TypeConfig.h>

#include <osmscout/util/FileScanner.h>
#include <osmscout/util/FileWriter.h>
#include <osmscout/io/FileScanner.h>
#include <osmscout/io/FileWriter.h>

#include <osmscout/system/Compiler.h>

Expand Down
4 changes: 2 additions & 2 deletions libosmscout-import/include/osmscoutimport/RawNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
#include <osmscout/Tag.h>
#include <osmscout/TypeConfig.h>

#include <osmscout/util/FileScanner.h>
#include <osmscout/util/FileWriter.h>
#include <osmscout/io/FileScanner.h>
#include <osmscout/io/FileWriter.h>

#include <osmscout/system/Compiler.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/

#include <osmscout/DataFile.h>
#include <osmscout/io/DataFile.h>

#include <osmscoutimport/RawRelation.h>

Expand Down
5 changes: 3 additions & 2 deletions libosmscout-import/include/osmscoutimport/RawRelation.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@
#include <osmscout/Tag.h>
#include <osmscout/TypeConfig.h>

#include <osmscout/util/FileScanner.h>
#include <osmscout/util/FileWriter.h>
#include <osmscout/io/FileScanner.h>
#include <osmscout/io/FileWriter.h>

#include <osmscout/util/TagErrorReporter.h>

#include <osmscout/system/Compiler.h>
Expand Down
4 changes: 2 additions & 2 deletions libosmscout-import/include/osmscoutimport/RawWay.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
#include <osmscout/Tag.h>
#include <osmscout/TypeConfig.h>

#include <osmscout/util/FileScanner.h>
#include <osmscout/util/FileWriter.h>
#include <osmscout/io/FileScanner.h>
#include <osmscout/io/FileWriter.h>

#include <osmscout/system/Compiler.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/

#include <osmscout/DataFile.h>
#include <osmscout/io/DataFile.h>

#include <osmscoutimport/RawWay.h>

Expand Down
5 changes: 3 additions & 2 deletions libosmscout-import/include/osmscoutimport/SortDat.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@

#include <osmscoutimport/Import.h>

#include <osmscout/DataFile.h>
#include <osmscout/ObjectRef.h>

#include <osmscout/util/FileWriter.h>
#include <osmscout/io/DataFile.h>
#include <osmscout/io/FileWriter.h>

#include <osmscout/system/Math.h>

namespace osmscout {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@

#include <osmscout/projection/Projection.h>

#include <osmscout/util/FileWriter.h>
#include <osmscout/util/Geometry.h>
#include <osmscout/util/Progress.h>
#include <osmscout/util/Transformation.h>

#include <osmscout/io/FileWriter.h>

#include <osmscout/system/Compiler.h>

#include <osmscoutimport/ImportImportExport.h>
Expand Down
4 changes: 2 additions & 2 deletions libosmscout-import/src/osmscoutimport/GenAreaAreaIndex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
#include <osmscout/db/AreaAreaIndex.h>
#include <osmscout/db/AreaDataFile.h>

#include <osmscout/util/File.h>
#include <osmscout/util/FileScanner.h>
#include <osmscout/io/File.h>
#include <osmscout/io/FileScanner.h>
#include <osmscout/util/GeoBox.h>
#include <osmscout/util/Geometry.h>

Expand Down
6 changes: 3 additions & 3 deletions libosmscout-import/src/osmscoutimport/GenAreaNodeIndex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@

#include <osmscout/system/Assert.h>

#include <osmscout/util/File.h>
#include <osmscout/util/FileWriter.h>
#include <osmscout/util/FileScanner.h>
#include <osmscout/io/File.h>
#include <osmscout/io/FileWriter.h>
#include <osmscout/io/FileScanner.h>
#include <osmscout/util/Geometry.h>
#include <osmscout/util/Number.h>

Expand Down
7 changes: 4 additions & 3 deletions libosmscout-import/src/osmscoutimport/GenLocationIndex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@
#include <osmscout/system/Assert.h>
#include <osmscout/system/Math.h>

#include <osmscout/util/File.h>
#include <osmscout/util/FileScanner.h>
#include <osmscout/util/FileWriter.h>
#include <osmscout/io/File.h>
#include <osmscout/io/FileScanner.h>
#include <osmscout/io/FileWriter.h>

#include <osmscout/util/GeoBox.h>
#include <osmscout/util/Geometry.h>

Expand Down
Loading

0 comments on commit 0fc6c75

Please sign in to comment.