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
PCNetProjectionLoader.h
Go to the documentation of this file.
1
/****************************************************************************/
9
// A reader for a SUMO network's projection description
10
/****************************************************************************/
11
// SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
12
// Copyright (C) 2001-2012 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 PCNetProjectionLoader_h
23
#define PCNetProjectionLoader_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/UtilExceptions.h
>
38
#include <
utils/geom/Position.h
>
39
40
41
// ===========================================================================
42
// class definitions
43
// ===========================================================================
44
class
OptionsCont
;
45
46
47
// ===========================================================================
48
// class declarations
49
// ===========================================================================
54
class
PCNetProjectionLoader
:
public
SUMOSAXHandler
{
55
public
:
69
static
void
loadIfSet
(
OptionsCont
& oc,
Position
& netOffset,
Boundary
& origNetBoundary,
70
Boundary
& convNetBoundary, std::string& projParameter);
71
72
73
protected
:
80
PCNetProjectionLoader
(
Position
& netOffset,
81
Boundary
& origNetBoundary,
Boundary
& convNetBoundary, std::string& projParameter);
82
83
85
~PCNetProjectionLoader
();
86
87
91
bool
hasReadAll
()
const
;
92
93
94
protected
:
96
97
105
virtual
void
myStartElement
(
int
element,
106
const
SUMOSAXAttributes
& attrs);
108
109
110
private
:
112
Position
&
myNetOffset
;
113
115
Boundary
&
myOrigNetBoundary
;
116
118
Boundary
&
myConvNetBoundary
;
119
121
std::string&
myProjParameter
;
122
124
bool
myFoundOffset
,
myFoundOrigNetBoundary
,
myFoundConvNetBoundary
,
myFoundProj
;
125
126
127
};
128
129
130
#endif
131
132
/****************************************************************************/
133
build
buildd
sumo-0.16.0~dfsg
src
polyconvert
PCNetProjectionLoader.h
Generated on Tue Apr 16 2013 01:32:20 for SUMO - Simulation of Urban MObility by
1.8.3.1