Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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// ===========================================================================
31class ODMatrix;
32
33
34// ===========================================================================
35// class definitions
36// ===========================================================================
45public:
48
50 virtual ~ROMARouteHandler();
51
52protected:
54
55
63 void myStartElement(int element, const SUMOSAXAttributes& attrs);
64
65 void myEndElement(int element);
67
68private:
71
73 std::vector<std::string> myTazParamKeys;
76
78 const bool myIgnoreTaz;
79
81 double myScale;
82
85
86private:
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;.
ROMARouteHandler & operator=(const ROMARouteHandler &s)
Invalidated assignment operator.
std::vector< std::string > myTazParamKeys
The keys for reading taz.
double myScale
scale for loading vehicles
ODMatrix & myMatrix
The matrix to fill.
SUMOVehicleParameter * myVehicleParameter
The current vehicle parameters.
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.