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.dev/sumo
3 // Copyright (C) 2001-2024 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials are made available under the
5 // terms of the Eclipse Public License 2.0 which is available at
6 // https://www.eclipse.org/legal/epl-2.0/
7 // This Source Code may also be made available under the following Secondary
8 // Licenses when the conditions for such availability set forth in the Eclipse
9 // Public License 2.0 are satisfied: GNU General Public License, version 2
10 // or later which is available at
11 // https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12 // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13 /****************************************************************************/
20 // Parser and container for routes during their loading
21 /****************************************************************************/
22 #pragma once
23 #include <config.h>
24 
26 
27 
28 // ===========================================================================
29 // class declarations
30 // ===========================================================================
31 class ODMatrix;
32 
33 
34 // ===========================================================================
35 // class definitions
36 // ===========================================================================
45 public:
47  ROMARouteHandler(ODMatrix& matrix);
48 
50  virtual ~ROMARouteHandler();
51 
52 protected:
54 
55 
63  void myStartElement(int element, const SUMOSAXAttributes& attrs);
64 
65  void myEndElement(int element);
67 
68 private:
71 
73  std::vector<std::string> myTazParamKeys;
76 
78  const bool myIgnoreTaz;
79 
81  double myScale;
82 
85 
86 private:
89 
92 
93 };
An O/D (origin/destination) matrix.
Definition: ODMatrix.h:68
Parser and container for routes during their loading.
void myEndElement(int element)
Callback method for a closing tag to implement by derived classes.
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
std::vector< std::string > myTazParamKeys
The keys for reading taz.
double myScale
scale for loading vehicles
ODMatrix & myMatrix
The matrix to fill.
ROMARouteHandler & operator=(const ROMARouteHandler &s)
Invalidated assignment operator.
SUMOVehicleParameter * myVehicleParameter
The current vehicle parameters.
ROMARouteHandler(ODMatrix &matrix)
standard constructor
virtual ~ROMARouteHandler()
standard destructor
const bool myIgnoreTaz
whether to ignore attributes fromTaz, toTaz
int myNumLoaded
number of parsed vehicles
ROMARouteHandler(const ROMARouteHandler &s)
Invalidated copy constructor.
Encapsulated SAX-Attributes.
SAX-handler base for SUMO-files.
Structure representing possible vehicle parameter.