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) ;
107
108
116
void
myCharacters
(
int
element,
117
const
std::string& chars) ;
119
120
121
private
:
123
Position
&
myNetOffset
;
124
126
Boundary
&
myOrigNetBoundary
;
127
129
Boundary
&
myConvNetBoundary
;
130
132
std::string&
myProjParameter
;
133
135
bool
myFoundOffset
,
myFoundOrigNetBoundary
,
myFoundConvNetBoundary
,
myFoundProj
;
136
137
138
};
139
140
141
#endif
142
143
/****************************************************************************/
144
var
build
temp
tmp.znCyBrHNjL
4.0-0-0
sumo
sumo-0.15.0~dfsg
src
polyconvert
PCNetProjectionLoader.h
Generated on Mon Mar 24 2014 09:53:14 for SUMO - Simulation of Urban MObility by
1.8.1.2