SUMO - Simulation of Urban MObility
 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>
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:
69  static void loadIfSet(OptionsCont& oc, Position& netOffset, Boundary& origNetBoundary,
70  Boundary& convNetBoundary, std::string& projParameter) ;
71 
72 
73 protected:
81  Boundary& origNetBoundary, Boundary& convNetBoundary, std::string& projParameter) ;
82 
83 
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:
124 
127 
130 
132  std::string& myProjParameter;
133 
136 
137 
138 };
139 
140 
141 #endif
142 
143 /****************************************************************************/
144