SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RORDLoader_SUMOBase.h
Go to the documentation of this file.
1 /****************************************************************************/
9 // The base class for SUMO-native route handlers
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 RORDLoader_SUMOBase_h
23 #define RORDLoader_SUMOBase_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 "ROTypedXMLRoutesLoader.h"
38 #include <utils/common/RGBColor.h>
40 
41 
42 // ===========================================================================
43 // class declarations
44 // ===========================================================================
45 class SUMOVTypeParameter;
46 class RORouteDef;
47 class MsgHandler;
50 class RORoute;
51 
52 
53 // ===========================================================================
54 // class definitions
55 // ===========================================================================
65  public ROTypedXMLRoutesLoader {
66 public:
69  SUMOTime begin, SUMOTime end,
70  const int maxRouteNumber, const bool tryRepair, const bool withTaz,
71  const bool keepRoutes, const bool skipRouteCalculation,
72  const std::string& file = "");
73 
76 
77 
78 protected:
80 
81 
89  virtual void myStartElement(int element,
90  const SUMOSAXAttributes& attrs) ;
91 
92 
100  void myCharacters(int element,
101  const std::string& chars) ;
102 
103 
110  virtual void myEndElement(int element) ;
112 
114  void startAlternative(const SUMOSAXAttributes& attrs);
115 
117  void startRoute(const SUMOSAXAttributes& attrs);
118 
119  bool closeVehicle() ;
120 
121 
122 protected:
125 
128 
131 
134 
137 
140 
143 
146 
149 
151  const bool myWithTaz;
152 
154  const bool myKeepRoutes;
155 
158 
161 
163  std::string myCurrentRouteName;
164 
167 
170 
171 private:
174 
177 
178 };
179 
180 
181 #endif
182 
183 /****************************************************************************/
184