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