SUMO - Simulation of Urban MObility
ROMARouteHandler.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 // Parser and container for routes during their loading
20 /****************************************************************************/
21 #ifndef ROMARouteHandler_h
22 #define ROMARouteHandler_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 
35 
36 
37 // ===========================================================================
38 // class declarations
39 // ===========================================================================
40 class ODMatrix;
41 
42 
43 // ===========================================================================
44 // class definitions
45 // ===========================================================================
54 public:
56  ROMARouteHandler(ODMatrix& matrix);
57 
59  virtual ~ROMARouteHandler();
60 
61 protected:
63 
64 
72  void myStartElement(int element, const SUMOSAXAttributes& attrs);
73 
74  void myEndElement(int element);
76 
77 
78 private:
82  std::vector<std::string> myTazParamKeys;
85 
86 private:
89 
92 
93 };
94 
95 
96 #endif
97 
98 /****************************************************************************/
99 
ODMatrix & myMatrix
The matrix to fill.
ROMARouteHandler(ODMatrix &matrix)
standard constructor
virtual ~ROMARouteHandler()
standard destructor
Parser and container for routes during their loading.
SAX-handler base for SUMO-files.
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
std::vector< std::string > myTazParamKeys
The keys for reading taz.
Encapsulated SAX-Attributes.
An O/D (origin/destination) matrix.
Definition: ODMatrix.h:75
void myEndElement(int element)
Callback method for a closing tag to implement by derived classes.
ROMARouteHandler & operator=(const ROMARouteHandler &s)
Invalidated assignment operator.
Structure representing possible vehicle parameter.
SUMOVehicleParameter * myVehicleParameter
The current vehicle parameters.