libosmscout
1.1.1
Toggle main menu visibility
Loading...
Searching...
No Matches
libosmscout-import
include
osmscoutimport
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
29
#include <
osmscoutimport/ImportImportExport.h
>
30
31
#include <
osmscout/TypeConfig.h
>
32
33
#include <
osmscoutimport/ImportErrorReporter.h
>
34
#include <
osmscoutimport/ImportProgress.h
>
35
#include <
osmscoutimport/ImportParameter.h
>
36
#include <
osmscoutimport/ImportModule.h
>
37
38
#include <
osmscout/util/Magnification.h
>
39
#include <
osmscout/util/Progress.h
>
40
#include <
osmscout/util/Transformation.h
>
41
42
#include <
osmscout/system/Compiler.h
>
43
44
namespace
osmscout
{
45
50
class
OSMSCOUT_IMPORT_API
Importer
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
Compiler.h
ImportErrorReporter.h
ImportImportExport.h
OSMSCOUT_IMPORT_API
#define OSMSCOUT_IMPORT_API
Definition
ImportImportExport.h:45
ImportModule.h
ImportParameter.h
ImportProgress.h
Magnification.h
Progress.h
Transformation.h
TypeConfig.h
osmscout::ImportProgress
Definition
ImportProgress.h:35
osmscout::Importer::GetProvidedAnalysisFiles
std::list< std::string > GetProvidedAnalysisFiles() const
osmscout::Importer::~Importer
virtual ~Importer()=default
osmscout::Importer::GetProvidedReportFiles
std::list< std::string > GetProvidedReportFiles() const
osmscout::Importer::GetProvidedFiles
std::list< std::string > GetProvidedFiles() const
osmscout::Importer::GetProvidedDebuggingFiles
std::list< std::string > GetProvidedDebuggingFiles() const
osmscout::Importer::Import
bool Import(ImportProgress &progress)
osmscout::Importer::Importer
Importer(const ImportParameter ¶meter)
osmscout::Importer::GetProvidedOptionalFiles
std::list< std::string > GetProvidedOptionalFiles() const
osmscout::Importer::GetProvidedTemporaryFiles
std::list< std::string > GetProvidedTemporaryFiles() const
osmscout::Progress
Definition
Progress.h:34
osmscout::TypeConfigRef
std::shared_ptr< TypeConfig > TypeConfigRef
Definition
TypeConfig.h:1396
osmscout
Definition
Area.h:39
Generated by
1.17.0