Eclipse 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-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
17 // Parser and container for routes during their loading
18 /****************************************************************************/
19 #ifndef ROMARouteHandler_h
20 #define ROMARouteHandler_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #include <config.h>
27 
29 
30 
31 // ===========================================================================
32 // class declarations
33 // ===========================================================================
34 class ODMatrix;
35 
36 
37 // ===========================================================================
38 // class definitions
39 // ===========================================================================
48 public:
50  ROMARouteHandler(ODMatrix& matrix);
51 
53  virtual ~ROMARouteHandler();
54 
55 protected:
57 
58 
66  void myStartElement(int element, const SUMOSAXAttributes& attrs);
67 
68  void myEndElement(int element);
70 
71 private:
74 
76  std::vector<std::string> myTazParamKeys;
79 
80 private:
83 
86 
87 };
88 
89 
90 #endif
91 
92 /****************************************************************************/
93 
ROMARouteHandler::ROMARouteHandler
ROMARouteHandler(ODMatrix &matrix)
standard constructor
Definition: ROMARouteHandler.cpp:38
SUMOSAXHandler
SAX-handler base for SUMO-files.
Definition: SUMOSAXHandler.h:42
ROMARouteHandler::myStartElement
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
Definition: ROMARouteHandler.cpp:51
ROMARouteHandler::~ROMARouteHandler
virtual ~ROMARouteHandler()
standard destructor
Definition: ROMARouteHandler.cpp:46
SUMOSAXHandler.h
SUMOVehicleParameter
Structure representing possible vehicle parameter.
Definition: SUMOVehicleParameter.h:291
ROMARouteHandler::operator=
ROMARouteHandler & operator=(const ROMARouteHandler &s)
Invalidated assignment operator.
ROMARouteHandler
Parser and container for routes during their loading.
Definition: ROMARouteHandler.h:47
ODMatrix
An O/D (origin/destination) matrix.
Definition: ODMatrix.h:69
ROMARouteHandler::myEndElement
void myEndElement(int element)
Callback method for a closing tag to implement by derived classes.
Definition: ROMARouteHandler.cpp:74
ROMARouteHandler::myMatrix
ODMatrix & myMatrix
The matrix to fill.
Definition: ROMARouteHandler.h:73
ROMARouteHandler::myTazParamKeys
std::vector< std::string > myTazParamKeys
The keys for reading taz.
Definition: ROMARouteHandler.h:76
ROMARouteHandler::myVehicleParameter
SUMOVehicleParameter * myVehicleParameter
The current vehicle parameters.
Definition: ROMARouteHandler.h:78
config.h
SUMOSAXAttributes
Encapsulated SAX-Attributes.
Definition: SUMOSAXAttributes.h:57