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.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 /****************************************************************************/
18 // Realises dumping the complete network state
19 /****************************************************************************/
20 #ifndef MSXMLRawOut_h
21 #define MSXMLRawOut_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #include <config.h>
28 
29 #include <utils/common/SUMOTime.h>
30 
31 
32 // ===========================================================================
33 // class declarations
34 // ===========================================================================
35 class OutputDevice;
36 class MSEdgeControl;
37 class MSEdge;
38 class MSBaseVehicle;
39 class MSLane;
40 
41 
42 // ===========================================================================
43 // class definitions
44 // ===========================================================================
54 class MSXMLRawOut {
55 public:
67  static void write(OutputDevice& of, const MSEdgeControl& ec,
68  SUMOTime timestep, int precision);
69 
70 
77  static void writeVehicle(OutputDevice& of, const MSBaseVehicle& veh);
78 
79 
80 private:
91  static void writeEdge(OutputDevice& of, const MSEdge& edge, SUMOTime timestep);
92 
93 
103  static void writeLane(OutputDevice& of, const MSLane& lane);
104 
106  static void writeTransportable(OutputDevice& of, const MSTransportable* p, SumoXMLTag tag);
107 
108 private:
111 
114 
115 
116 };
117 
118 
119 #endif
120 
121 /****************************************************************************/
122 
SUMOTime.h
MSLane
Representation of a lane in the micro simulation.
Definition: MSLane.h:82
MSXMLRawOut::write
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:48
OutputDevice
Static storage of an output device and its base (abstract) implementation.
Definition: OutputDevice.h:63
SUMOTime
long long int SUMOTime
Definition: SUMOTime.h:34
MSTransportable
Definition: MSTransportable.h:58
SumoXMLTag
SumoXMLTag
Numbers representing SUMO-XML - element names.
Definition: SUMOXMLDefinitions.h:41
MSXMLRawOut::MSXMLRawOut
MSXMLRawOut(const MSXMLRawOut &)
Invalidated copy constructor.
MSXMLRawOut::writeEdge
static void writeEdge(OutputDevice &of, const MSEdge &edge, SUMOTime timestep)
Writes the dump of the given edge into the given device.
Definition: MSXMLRawOut.cpp:62
MSEdge
A road/street connecting two junctions.
Definition: MSEdge.h:78
MSXMLRawOut::operator=
MSXMLRawOut & operator=(const MSXMLRawOut &)
Invalidated assignment operator.
MSXMLRawOut::writeLane
static void writeLane(OutputDevice &of, const MSLane &lane)
Writes the dump of the given lane into the given device.
Definition: MSXMLRawOut.cpp:118
MSXMLRawOut::writeTransportable
static void writeTransportable(OutputDevice &of, const MSTransportable *p, SumoXMLTag tag)
write transportable
Definition: MSXMLRawOut.cpp:168
MSBaseVehicle
The base class for microscopic and mesoscopic vehicles.
Definition: MSBaseVehicle.h:51
config.h
MSEdgeControl
Stores edges and lanes, performs moving of vehicle.
Definition: MSEdgeControl.h:74
MSXMLRawOut
Realises dumping the complete network state.
Definition: MSXMLRawOut.h:54
MSXMLRawOut::writeVehicle
static void writeVehicle(OutputDevice &of, const MSBaseVehicle &veh)
Writes the dump of the given vehicle into the given device.
Definition: MSXMLRawOut.cpp:129