Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
XMLHelpers Class Reference

#include <XMLHelpers.h>

Static Public Member Functions

static OutputDevice & writeParams (OutputDevice &device, const Parameterised &params)
 write the parameters of the given object as param tags
 
static OutputDevice & writePermissions (OutputDevice &device, SVCPermissions permissions)
 writes allowed disallowed attributes if needed
 
static OutputDevice & writePreferences (OutputDevice &device, SVCPermissions preferred)
 writes the prefer attribute if needed
 

Detailed Description

Definition at line 28 of file XMLHelpers.h.

Member Function Documentation

◆ writeParams()

OutputDevice & XMLHelpers::writeParams ( OutputDevice &  device,
const Parameterised &  params 
)
static

write the parameters of the given object as param tags

Definition at line 28 of file XMLHelpers.cpp.

References OutputDevice::closeTag(), Parameterised::getParametersMap(), OutputDevice::openTag(), SUMO_ATTR_KEY, SUMO_ATTR_VALUE, SUMO_TAG_PARAM, and OutputDevice::writeAttr().

Referenced by MSStageWaiting::routeOutput(), MSTransportable::routeOutput(), ROPerson::Stop::saveAsXML(), ROPerson::saveAsXML(), ROVehicle::saveAsXML(), MEVehicle::saveState(), MSVehicle::saveState(), MSStop::write(), SUMOVTypeParameter::write(), SUMOVehicleParameter::Stop::write(), NBPTStop::write(), MSRailSignalConstraint_Predecessor::write(), GNEBusStop::writeAdditional(), GNECalibrator::writeAdditional(), GNECalibratorFlow::writeAdditional(), GNEChargingStation::writeAdditional(), GNEContainerStop::writeAdditional(), GNEEntryExitDetector::writeAdditional(), GNEInductionLoopDetector::writeAdditional(), GNEInstantInductionLoopDetector::writeAdditional(), GNELaneAreaDetector::writeAdditional(), GNEMultiEntryExitDetector::writeAdditional(), GNEOverheadWire::writeAdditional(), GNEParkingArea::writeAdditional(), GNEParkingSpace::writeAdditional(), GNEPOI::writeAdditional(), GNEPoly::writeAdditional(), GNERerouter::writeAdditional(), GNERouteProbe::writeAdditional(), GNETAZ::writeAdditional(), GNETractionSubstation::writeAdditional(), GNEVaporizer::writeAdditional(), GNEVariableSpeedSign::writeAdditional(), NWWriter_SUMO::writeConnection(), GNEContainer::writeDemandElement(), GNEPerson::writeDemandElement(), GNERoute::writeDemandElement(), GNEVehicle::writeDemandElement(), NWWriter_SUMO::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), NWWriter_SUMO::writeJunction(), NWWriter_SUMO::writeLane(), NWWriter_XML::writeNodes(), MSDevice_Vehroutes::writeOutput(), NWWriter_SUMO::writeTrafficLight(), SUMOPolygon::writeXML(), and PointOfInterest::writeXML().

Here is the caller graph for this function:

◆ writePermissions()

OutputDevice & XMLHelpers::writePermissions ( OutputDevice &  device,
SVCPermissions  permissions 
)
static

writes allowed disallowed attributes if needed

Definition at line 40 of file XMLHelpers.cpp.

References getNumVehicleClasses(), getVehicleClassNames(), SUMO_ATTR_ALLOW, SUMO_ATTR_DISALLOW, SUMOVehicleClass_MAX, SVC_UNSPECIFIED, SVCAll, OutputDevice::writeAttr(), and OutputDevice::writeOptionalAttr().

Referenced by NWWriter_SUMO::writeConnection(), NWWriter_XML::writeEdgesAndConnections(), NBTypeCont::writeEdgeTypes(), and NWWriter_SUMO::writeLane().

Here is the caller graph for this function:

◆ writePreferences()

OutputDevice & XMLHelpers::writePreferences ( OutputDevice &  device,
SVCPermissions  preferred 
)
static

writes the prefer attribute if needed

Definition at line 70 of file XMLHelpers.cpp.

References getVehicleClassNames(), SUMO_ATTR_PREFER, SVCAll, and OutputDevice::writeOptionalAttr().

Referenced by NWWriter_XML::writeEdgesAndConnections(), and NWWriter_SUMO::writeLane().

Here is the caller graph for this function:

The documentation for this class was generated from the following files: