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
RONetHandler.h
Go to the documentation of this file.
1
/****************************************************************************/
9
// The handler that parses a SUMO-network for its usage in a router
10
/****************************************************************************/
11
// SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
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 RONetHandler_h
23
#define RONetHandler_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
#include <
utils/xml/SUMOSAXHandler.h
>
37
#include <
utils/common/SUMOVehicleClass.h
>
38
#include <
utils/common/UtilExceptions.h
>
39
40
41
// ===========================================================================
42
// class declarations
43
// ===========================================================================
44
class
RONet
;
45
class
OptionsCont
;
46
class
ROEdge
;
47
class
ROAbstractEdgeBuilder
;
48
49
50
// ===========================================================================
51
// class definitions
52
// ===========================================================================
60
class
RONetHandler
:
public
SUMOSAXHandler
{
61
public
:
67
RONetHandler
(
RONet
& net,
ROAbstractEdgeBuilder
& eb);
68
69
71
virtual
~RONetHandler
();
72
73
74
protected
:
76
77
85
virtual
void
myStartElement
(
int
element,
86
const
SUMOSAXAttributes
& attrs);
88
89
protected
:
91
92
104
void
parseEdge
(
const
SUMOSAXAttributes
& attrs);
105
106
115
virtual
void
parseLane
(
const
SUMOSAXAttributes
& attrs);
116
117
126
void
parseJunction
(
const
SUMOSAXAttributes
& attrs);
127
128
133
void
parseConnection
(
const
SUMOSAXAttributes
& attrs);
134
135
145
void
parseDistrict
(
const
SUMOSAXAttributes
& attrs);
146
147
159
void
parseDistrictEdge
(
const
SUMOSAXAttributes
& attrs,
bool
isSource);
160
162
163
164
protected
:
166
RONet
&
myNet
;
167
169
std::string
myCurrentName
;
170
172
ROEdge
*
myCurrentEdge
;
173
175
bool
myProcess
;
176
178
ROAbstractEdgeBuilder
&
myEdgeBuilder
;
179
180
181
182
183
private
:
185
RONetHandler
(
const
RONetHandler
& src);
186
188
RONetHandler
&
operator=
(
const
RONetHandler
& src);
189
190
};
191
192
193
#endif
194
195
/****************************************************************************/
196
home
gladk
tmp
05
sumo-0.17.1~dfsg
src
router
RONetHandler.h
Generated on Sun Jun 16 2013 07:08:28 for SUMO - Simulation of Urban MObility by
1.8.1.2