SUMO - Simulation of Urban MObility
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-sim.org/
12 // Copyright (C) 2001-2014 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>
38 #include <utils/geom/Position.h>
39 
40 
41 // ===========================================================================
42 // class definitions
43 // ===========================================================================
44 class OptionsCont;
45 
46 
47 // ===========================================================================
48 // class declarations
49 // ===========================================================================
55 public:
61  static void load(const std::string& file, int shift);
62 
63 
64 protected:
67  PCNetProjectionLoader(int shift);
68 
69 
72 
73 
77  bool hasReadAll() const;
78 
79 
80 protected:
82 
83 
91  virtual void myStartElement(int element,
92  const SUMOSAXAttributes& attrs);
94 
95 
96 private:
99 
101  int myShift;
102 
103 
104 };
105 
106 
107 #endif
108 
109 /****************************************************************************/
110 
virtual void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
bool hasReadAll() const
Returns whether all needed values were read.
int myShift
shift of input coordinates (not given in the location element)
bool myFoundLocation
Information whether the parameter was read.
SAX-handler base for SUMO-files.
Encapsulated SAX-Attributes.
A reader for a SUMO network's projection description.
static void load(const std::string &file, int shift)
Loads network projection if wished.
PCNetProjectionLoader(int shift)
Constructor.
A storage for options typed value containers)
Definition: OptionsCont.h:108