SUMO - Simulation of Urban MObility
PCNetProjectionLoader.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
19 // A reader for a SUMO network's projection description
20 /****************************************************************************/
21 #ifndef PCNetProjectionLoader_h
22 #define PCNetProjectionLoader_h
23 
24 
25 // ===========================================================================
26 // included modules
27 // ===========================================================================
28 #ifdef _MSC_VER
29 #include <windows_config.h>
30 #else
31 #include <config.h>
32 #endif
33 
34 #include <string>
37 #include <utils/geom/Position.h>
38 
39 
40 // ===========================================================================
41 // class definitions
42 // ===========================================================================
43 class OptionsCont;
44 
45 
46 // ===========================================================================
47 // class declarations
48 // ===========================================================================
54 public:
60  static void load(const std::string& file, double scale);
61 
62 
63 protected:
66  PCNetProjectionLoader(double scale);
67 
68 
71 
72 
76  bool hasReadAll() const;
77 
78 
79 protected:
81 
82 
90  virtual void myStartElement(int element,
91  const SUMOSAXAttributes& attrs);
93 
94 
95 private:
98 
100  double myScale;
101 
102 
103 };
104 
105 
106 #endif
107 
108 /****************************************************************************/
109 
virtual void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
double myScale
scaling of input coordinates (not given in the location element)
static void load(const std::string &file, double scale)
Loads network projection if wished.
bool myFoundLocation
Information whether the parameter was read.
SAX-handler base for SUMO-files.
Encapsulated SAX-Attributes.
A reader for a SUMO network&#39;s projection description.
A storage for options typed value containers)
Definition: OptionsCont.h:98
PCNetProjectionLoader(double scale)
Constructor.
bool hasReadAll() const
Returns whether all needed values were read.