Eclipse SUMO - Simulation of Urban MObility
MSXMLRawOut.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 /****************************************************************************/
22 // Realises dumping the complete network state
23 /****************************************************************************/
24 #pragma once
25 #include <config.h>
26 
27 #include <utils/common/SUMOTime.h>
28 
29 
30 // ===========================================================================
31 // class declarations
32 // ===========================================================================
33 class OutputDevice;
34 class MSEdgeControl;
35 class MSEdge;
36 class MSBaseVehicle;
37 class MSLane;
38 
39 
40 // ===========================================================================
41 // class definitions
42 // ===========================================================================
52 class MSXMLRawOut {
53 public:
65  static void write(OutputDevice& of, const MSEdgeControl& ec,
66  SUMOTime timestep, int precision);
67 
68 
75  static void writeVehicle(OutputDevice& of, const MSBaseVehicle& veh);
76 
77 
78 private:
89  static void writeEdge(OutputDevice& of, const MSEdge& edge, SUMOTime timestep);
90 
91 
101  static void writeLane(OutputDevice& of, const MSLane& lane);
102 
104  static void writeTransportable(OutputDevice& of, const MSTransportable* p, SumoXMLTag tag);
105 
106 private:
109 
112 
113 
114 };
long long int SUMOTime
Definition: GUI.h:35
SumoXMLTag
Numbers representing SUMO-XML - element names.
The base class for microscopic and mesoscopic vehicles.
Definition: MSBaseVehicle.h:55
Stores edges and lanes, performs moving of vehicle.
Definition: MSEdgeControl.h:78
A road/street connecting two junctions.
Definition: MSEdge.h:77
Representation of a lane in the micro simulation.
Definition: MSLane.h:84
Realises dumping the complete network state.
Definition: MSXMLRawOut.h:52
static void writeTransportable(OutputDevice &of, const MSTransportable *p, SumoXMLTag tag)
write transportable
MSXMLRawOut(const MSXMLRawOut &)
Invalidated copy constructor.
static void writeVehicle(OutputDevice &of, const MSBaseVehicle &veh)
Writes the dump of the given vehicle into the given device.
static void writeEdge(OutputDevice &of, const MSEdge &edge, SUMOTime timestep)
Writes the dump of the given edge into the given device.
Definition: MSXMLRawOut.cpp:61
static void writeLane(OutputDevice &of, const MSLane &lane)
Writes the dump of the given lane into the given device.
static void write(OutputDevice &of, const MSEdgeControl &ec, SUMOTime timestep, int precision)
Writes the complete network state of the given edges into the given device.
Definition: MSXMLRawOut.cpp:47
MSXMLRawOut & operator=(const MSXMLRawOut &)
Invalidated assignment operator.
Static storage of an output device and its base (abstract) implementation.
Definition: OutputDevice.h:61