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-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
21 // Realises dumping the complete network state
22 /****************************************************************************/
23 #ifndef MSXMLRawOut_h
24 #define MSXMLRawOut_h
25 
26 
27 // ===========================================================================
28 // included modules
29 // ===========================================================================
30 #ifdef _MSC_VER
31 #include <windows_config.h>
32 #else
33 #include <config.h>
34 #endif
35 
36 #include <utils/common/SUMOTime.h>
37 
38 
39 // ===========================================================================
40 // class declarations
41 // ===========================================================================
42 class OutputDevice;
43 class MSEdgeControl;
44 class MSEdge;
45 class MSBaseVehicle;
46 class MSLane;
47 
48 
49 // ===========================================================================
50 // class definitions
51 // ===========================================================================
61 class MSXMLRawOut {
62 public:
74  static void write(OutputDevice& of, const MSEdgeControl& ec,
75  SUMOTime timestep, int precision);
76 
77 
84  static void writeVehicle(OutputDevice& of, const MSBaseVehicle& veh);
85 
86 
87 private:
98  static void writeEdge(OutputDevice& of, const MSEdge& edge, SUMOTime timestep);
99 
100 
110  static void writeLane(OutputDevice& of, const MSLane& lane);
111 
113  static void writeTransportable(OutputDevice& of, const MSTransportable* p, SumoXMLTag tag);
114 
115 private:
117  MSXMLRawOut(const MSXMLRawOut&);
118 
121 
122 
123 };
124 
125 
126 #endif
127 
128 /****************************************************************************/
129 
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:54
SumoXMLTag
Numbers representing SUMO-XML - element names.
static void writeTransportable(OutputDevice &of, const MSTransportable *p, SumoXMLTag tag)
write transportable
Realises dumping the complete network state.
Definition: MSXMLRawOut.h:61
The base class for microscopic and mesoscopic vehicles.
Definition: MSBaseVehicle.h:55
A road/street connecting two junctions.
Definition: MSEdge.h:80
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:68
Static storage of an output device and its base (abstract) implementation.
Definition: OutputDevice.h:70
long long int SUMOTime
Definition: TraCIDefs.h:51
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:77
MSXMLRawOut & operator=(const MSXMLRawOut &)
Invalidated assignment operator.