|
SUMO - Simulation of Urban MObility
|
Realises dumping the complete network state. More...
#include <MSXMLRawOut.h>
Static Public Member Functions | |
| static void | write (OutputDevice &of, const MSEdgeControl &ec, SUMOTime timestep) throw (IOError) |
| Writes the complete network state of the given edges into the given device. | |
| static void | writeVehicle (OutputDevice &of, const MSBaseVehicle &veh) throw (IOError) |
| Writes the dump of the given vehicle into the given device. | |
Private Member Functions | |
| MSXMLRawOut (const MSXMLRawOut &) | |
| Invalidated copy constructor. | |
| MSXMLRawOut & | operator= (const MSXMLRawOut &) |
| Invalidated assignment operator. | |
Static Private Member Functions | |
| static void | writeEdge (OutputDevice &of, const MSEdge &edge) throw (IOError) |
| Writes the dump of the given edge into the given device. | |
| static void | writeLane (OutputDevice &of, const MSLane &lane) throw (IOError) |
| Writes the dump of the given lane into the given device. | |
Realises dumping the complete network state.
The class offers a static method, which writes the complete dump of the given network into the given OutputDevice.
Definition at line 56 of file MSXMLRawOut.h.
| MSXMLRawOut::MSXMLRawOut | ( | const MSXMLRawOut & | ) | [private] |
Invalidated copy constructor.
| MSXMLRawOut& MSXMLRawOut::operator= | ( | const MSXMLRawOut & | ) | [private] |
Invalidated assignment operator.
| void MSXMLRawOut::write | ( | OutputDevice & | of, |
| const MSEdgeControl & | ec, | ||
| SUMOTime | timestep | ||
| ) | throw (IOError) [static] |
Writes the complete network state of the given edges into the given device.
Opens the current time step, goes through the edges and writes each using writeEdge.
| [in] | of | The output device to use |
| [in] | ec | The EdgeControl which holds the edges to write |
| [in] | timestep | The current time step |
| IOError | If an error on writing occurs (!!! not yet implemented) |
Definition at line 52 of file MSXMLRawOut.cpp.
References time2string().
Referenced by MSNet::writeOutput().
| void MSXMLRawOut::writeEdge | ( | OutputDevice & | of, |
| const MSEdge & | edge | ||
| ) | throw (IOError) [static, private] |
Writes the dump of the given edge into the given device.
If the edge is not empty or also empty edges shall be dumped, the edge description is opened and writeLane is called for each lane.
| [in] | of | The output device to use |
| [in] | edge | The edge to dump |
| IOError | If an error on writing occurs (!!! not yet implemented) |
Definition at line 64 of file MSXMLRawOut.cpp.
References MSGlobals::gOmitEmptyEdgesOnDump.
| void MSXMLRawOut::writeLane | ( | OutputDevice & | of, |
| const MSLane & | lane | ||
| ) | throw (IOError) [static, private] |
Writes the dump of the given lane into the given device.
Opens the lane description and goes through all vehicles, calling writeVehicle for each.
| [in] | of | The output device to use |
| [in] | lane | The lane to dump |
| IOError | If an error on writing occurs (!!! not yet implemented) |
Definition at line 116 of file MSXMLRawOut.cpp.
| void MSXMLRawOut::writeVehicle | ( | OutputDevice & | of, |
| const MSBaseVehicle & | veh | ||
| ) | throw (IOError) [static] |
Writes the dump of the given vehicle into the given device.
| [in] | of | The output device to use |
| [in] | veh | The vehicle to dump |
| IOError | If an error on writing occurs (!!! not yet implemented) |
Definition at line 134 of file MSXMLRawOut.cpp.