SUMO - Simulation of Urban MObility
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
NIImporter_ArcView.h
Go to the documentation of this file.
1
/****************************************************************************/
9
// Importer for networks stored in ArcView-shape format
10
/****************************************************************************/
11
// SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
12
// Copyright (C) 2002-2014 DLR (http://www.dlr.de/) and contributors
13
/****************************************************************************/
14
//
15
// This file is part of SUMO.
16
// SUMO is free software: you can redistribute it and/or modify
17
// it under the terms of the GNU General Public License as published by
18
// the Free Software Foundation, either version 3 of the License, or
19
// (at your option) any later version.
20
//
21
/****************************************************************************/
22
#ifndef NIImporter_ArcView_h
23
#define NIImporter_ArcView_h
24
25
26
// ===========================================================================
27
// included modules
28
// ===========================================================================
29
#ifdef _MSC_VER
30
#include <
windows_config.h
>
31
#else
32
#include <
config.h
>
33
#endif
34
35
#include <string>
36
37
38
// ===========================================================================
39
// class declarations
40
// ===========================================================================
41
class
OptionsCont
;
42
class
OGRFeature;
43
44
45
// ===========================================================================
46
// class definitions
47
// ===========================================================================
57
class
NIImporter_ArcView
{
58
public
:
70
static
void
loadNetwork
(
const
OptionsCont
& oc,
NBNetBuilder
& nb);
71
72
73
protected
:
83
NIImporter_ArcView
(
const
OptionsCont
& oc,
84
NBNodeCont
& nc,
NBEdgeCont
& ec,
NBTypeCont
& tc,
85
const
std::string& dbf_name,
const
std::string& shp_name,
86
bool
speedInKMH);
87
89
~NIImporter_ArcView
();
90
91
94
void
load
();
95
96
97
private
:
98
#ifdef HAVE_GDAL
99
103
SUMOReal
getSpeed(OGRFeature& f,
const
std::string& edgeid);
104
105
111
unsigned
int
getLaneNo(OGRFeature& f,
112
const
std::string& edgeid,
SUMOReal
speed);
113
118
int
getPriority(OGRFeature& f,
const
std::string& edgeid);
119
120
128
void
checkSpread(
NBEdge
* e);
129
130
144
bool
getStringEntry(OGRFeature* poFeature,
const
std::string& optionName,
const
char
* defaultName,
bool
prune, std::string& into);
145
#endif
146
147
private
:
149
const
OptionsCont
&
myOptions
;
150
152
std::string
mySHPName
;
153
155
int
myNameAddition
;
156
158
NBNodeCont
&
myNodeCont
;
159
161
NBEdgeCont
&
myEdgeCont
;
162
164
NBTypeCont
&
myTypeCont
;
165
167
bool
mySpeedInKMH
;
168
170
int
myRunningNodeID
;
171
172
173
private
:
175
NIImporter_ArcView
(
const
NIImporter_ArcView
&);
176
178
NIImporter_ArcView
&
operator=
(
const
NIImporter_ArcView
&);
179
180
};
181
182
183
#endif
184
185
/****************************************************************************/
186
tmp
buildd
sumo-0.21.0+dfsg
src
netimport
NIImporter_ArcView.h
Generated on Thu Nov 20 2014 19:49:56 for SUMO - Simulation of Urban MObility by
1.8.1.2