libosmscout 1.1.1
Loading...
Searching...
No Matches
Import.h
Go to the documentation of this file.
1#ifndef OSMSCOUT_IMPORT_IMPORT_H
2#define OSMSCOUT_IMPORT_IMPORT_H
3
4/*
5 This source is part of the libosmscout library
6 Copyright (C) 2009 Tim Teulings
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21*/
22
23#include <list>
24#include <mutex>
25#include <string>
26
27#include <osmscoutimport/ImportFeatures.h>
28
30
31#include <osmscout/TypeConfig.h>
32
37
41
43
44namespace osmscout {
45
51 {
52 private:
53 ImportParameter parameter;
54 std::vector<ImportModuleRef> modules;
55 std::vector<ImportModuleDescription> moduleDescriptions;
56
57 private:
58 bool ValidateDescription(Progress& progress);
59 bool ValidateParameter(Progress& progress);
60 void GetModuleList(std::vector<ImportModuleRef>& modules);
61 void DumpTypeConfigData(const TypeConfig& typeConfig,
62 Progress& progress);
63 bool CleanupTemporaries(size_t currentStep,
64 Progress& progress);
65
66 bool ExecuteModules(const TypeConfigRef& typeConfig,
67 ImportProgress& progress);
68 public:
69 explicit Importer(const ImportParameter& parameter);
70 virtual ~Importer() = default;
71
72 bool Import(ImportProgress& progress);
73
74 std::list<std::string> GetProvidedFiles() const;
75 std::list<std::string> GetProvidedOptionalFiles() const;
76 std::list<std::string> GetProvidedDebuggingFiles() const;
77 std::list<std::string> GetProvidedTemporaryFiles() const;
78 std::list<std::string> GetProvidedAnalysisFiles() const;
79 std::list<std::string> GetProvidedReportFiles() const;
80 };
81}
82
83#endif
#define OSMSCOUT_IMPORT_API
Definition ImportImportExport.h:45
Definition ImportProgress.h:35
std::list< std::string > GetProvidedAnalysisFiles() const
virtual ~Importer()=default
std::list< std::string > GetProvidedReportFiles() const
std::list< std::string > GetProvidedFiles() const
std::list< std::string > GetProvidedDebuggingFiles() const
bool Import(ImportProgress &progress)
Importer(const ImportParameter &parameter)
std::list< std::string > GetProvidedOptionalFiles() const
std::list< std::string > GetProvidedTemporaryFiles() const
Definition Progress.h:34
std::shared_ptr< TypeConfig > TypeConfigRef
Definition TypeConfig.h:1396
Definition Area.h:39