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 /****************************************************************************/
16 // Parser and container for routes during their loading
17 /****************************************************************************/
18 #ifndef ROMARouteHandler_h
19 #define ROMARouteHandler_h
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #include <config.h>
26 
28 
29 
30 // ===========================================================================
31 // class declarations
32 // ===========================================================================
33 class ODMatrix;
34 
35 
36 // ===========================================================================
37 // class definitions
38 // ===========================================================================
47 public:
49  ROMARouteHandler(ODMatrix& matrix);
50 
52  virtual ~ROMARouteHandler();
53 
54 protected:
56 
57 
65  void myStartElement(int element, const SUMOSAXAttributes& attrs);
66 
67  void myEndElement(int element);
69 
70 private:
73 
75  std::vector<std::string> myTazParamKeys;
78 
79 private:
82 
85 
86 };
87 
88 
89 #endif
90 
91 /****************************************************************************/
92 
ROMARouteHandler::ROMARouteHandler
ROMARouteHandler(ODMatrix &matrix)
standard constructor
Definition: ROMARouteHandler.cpp:37
SUMOSAXHandler
SAX-handler base for SUMO-files.
Definition: SUMOSAXHandler.h:41
ROMARouteHandler::myStartElement
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
Definition: ROMARouteHandler.cpp:50
ROMARouteHandler::~ROMARouteHandler
virtual ~ROMARouteHandler()
standard destructor
Definition: ROMARouteHandler.cpp:45
SUMOSAXHandler.h
ROMARouteHandler::ROMARouteHandler
ROMARouteHandler(const ROMARouteHandler &s)
Invalidated copy constructor.
SUMOVehicleParameter
Structure representing possible vehicle parameter.
Definition: SUMOVehicleParameter.h:297
ROMARouteHandler::operator=
ROMARouteHandler & operator=(const ROMARouteHandler &s)
Invalidated assignment operator.
ROMARouteHandler
Parser and container for routes during their loading.
Definition: ROMARouteHandler.h:46
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:73
ROMARouteHandler::myMatrix
ODMatrix & myMatrix
The matrix to fill.
Definition: ROMARouteHandler.h:72
ROMARouteHandler::myTazParamKeys
std::vector< std::string > myTazParamKeys
The keys for reading taz.
Definition: ROMARouteHandler.h:75
ROMARouteHandler::myVehicleParameter
SUMOVehicleParameter * myVehicleParameter
The current vehicle parameters.
Definition: ROMARouteHandler.h:77
config.h
SUMOSAXAttributes
Encapsulated SAX-Attributes.
Definition: SUMOSAXAttributes.h:56