SUMO - Simulation of Urban MObility
MSXMLRawOut.h
Go to the documentation of this file.
1 /****************************************************************************/
11 // Realises dumping the complete network state
12 /****************************************************************************/
13 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
14 // Copyright (C) 2001-2017 DLR (http://www.dlr.de/) and contributors
15 /****************************************************************************/
16 //
17 // This file is part of SUMO.
18 // SUMO is free software: you can redistribute it and/or modify
19 // it under the terms of the GNU General Public License as published by
20 // the Free Software Foundation, either version 3 of the License, or
21 // (at your option) any later version.
22 //
23 /****************************************************************************/
24 #ifndef MSXMLRawOut_h
25 #define MSXMLRawOut_h
26 
27 
28 // ===========================================================================
29 // included modules
30 // ===========================================================================
31 #ifdef _MSC_VER
32 #include <windows_config.h>
33 #else
34 #include <config.h>
35 #endif
36 
37 #include <utils/common/SUMOTime.h>
38 
39 
40 // ===========================================================================
41 // class declarations
42 // ===========================================================================
43 class OutputDevice;
44 class MSEdgeControl;
45 class MSEdge;
46 class MSBaseVehicle;
47 class MSLane;
48 
49 
50 // ===========================================================================
51 // class definitions
52 // ===========================================================================
62 class MSXMLRawOut {
63 public:
75  static void write(OutputDevice& of, const MSEdgeControl& ec,
76  SUMOTime timestep, int precision);
77 
78 
85  static void writeVehicle(OutputDevice& of, const MSBaseVehicle& veh);
86 
87 
88 private:
99  static void writeEdge(OutputDevice& of, const MSEdge& edge, SUMOTime timestep);
100 
101 
111  static void writeLane(OutputDevice& of, const MSLane& lane);
112 
114  static void writeTransportable(OutputDevice& of, const MSTransportable* p, SumoXMLTag tag);
115 
116 private:
118  MSXMLRawOut(const MSXMLRawOut&);
119 
122 
123 
124 };
125 
126 
127 #endif
128 
129 /****************************************************************************/
130 
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:55
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:62
The base class for microscopic and mesoscopic vehicles.
Definition: MSBaseVehicle.h:56
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:74
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:69
Static storage of an output device and its base (abstract) implementation.
Definition: OutputDevice.h:71
long long int SUMOTime
Definition: TraCIDefs.h:52
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:79
MSXMLRawOut & operator=(const MSXMLRawOut &)
Invalidated assignment operator.