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
NIXMLConnectionsHandler.h
Go to the documentation of this file.
1
/****************************************************************************/
9
// Importer for edge connections stored in XML
10
/****************************************************************************/
11
// SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
12
// Copyright (C) 2001-2013 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 NIXMLConnectionsHandler_h
23
#define NIXMLConnectionsHandler_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 <
utils/xml/SUMOSAXHandler.h
>
36
#include <
netbuild/NBConnection.h
>
37
38
39
// ===========================================================================
40
// class declarations
41
// ===========================================================================
42
class
NBEdge
;
43
class
NBEdgeCont
;
44
class
NBTrafficLightLogicCont
;
45
class
MsgHandler
;
46
47
48
// ===========================================================================
49
// class definitions
50
// ===========================================================================
58
class
NIXMLConnectionsHandler
:
public
SUMOSAXHandler
{
59
public
:
63
NIXMLConnectionsHandler
(
NBEdgeCont
& ec,
NBTrafficLightLogicCont
& tlc);
64
65
67
~NIXMLConnectionsHandler
();
68
69
70
protected
:
72
73
81
void
myStartElement
(
int
element,
82
const
SUMOSAXAttributes
& attrs);
84
85
private
:
94
NBConnection
parseConnection
(
const
std::string& defRole,
const
std::string& def);
95
96
102
void
parseLaneBound
(
const
SUMOSAXAttributes
& attrs,
NBEdge
* from,
NBEdge
* to);
103
104
112
bool
parseLaneInfo
(
const
SUMOSAXAttributes
& attributes,
NBEdge
* fromEdge,
NBEdge
* toEdge,
int
* fromLane,
int
* toLane);
113
114
122
inline
bool
parseDeprecatedLaneDefinition
(
const
SUMOSAXAttributes
& attributes,
123
NBEdge
* fromEdge,
NBEdge
* toEdge,
124
int
* fromLane,
int
* toLane);
125
126
132
inline
bool
parseLaneDefinition
(
const
SUMOSAXAttributes
& attributes,
int
* fromLane,
int
* toLane);
133
134
135
private
:
137
NBEdgeCont
&
myEdgeCont
;
138
141
NBTrafficLightLogicCont
&
myTLLogicCont
;
142
144
bool
myHaveWarnedAboutDeprecatedLanes
;
145
147
MsgHandler
*
const
myErrorMsgHandler
;
148
149
private
:
151
NIXMLConnectionsHandler
(
const
NIXMLConnectionsHandler
& s);
152
154
NIXMLConnectionsHandler
&
operator=
(
const
NIXMLConnectionsHandler
& s);
155
156
157
};
158
159
160
#endif
161
162
/****************************************************************************/
163
home
delphi
sumo
src
netimport
NIXMLConnectionsHandler.h
Generated by
1.8.2