SUMO - Simulation of Urban MObility
|
#include <config.h>
#include <sstream>
#include <string>
#include <iomanip>
#include <utils/xml/SUMOXMLDefinitions.h>
#include <utils/common/SUMOVehicleClass.h>
#include "StdDefs.h"
Go to the source code of this file.
Functions | |
template<class T > | |
std::string | toString (const T &t, std::streamsize accuracy=OUTPUT_ACCURACY) |
template<> | |
std::string | toString< LaneSpreadFunction > (const LaneSpreadFunction &lsf, std::streamsize accuracy) |
template<> | |
std::string | toString< LinkDirection > (const LinkDirection &linkDir, std::streamsize accuracy) |
template<> | |
std::string | toString< LinkState > (const LinkState &linkState, std::streamsize accuracy) |
template<> | |
std::string | toString< SUMOVehicleClass > (const SUMOVehicleClass &vClass, std::streamsize accuracy) |
template<> | |
std::string | toString< SumoXMLAttr > (const SumoXMLAttr &attr, std::streamsize accuracy) |
template<> | |
std::string | toString< SumoXMLEdgeFunc > (const SumoXMLEdgeFunc &edgeFunc, std::streamsize accuracy) |
template<> | |
std::string | toString< SumoXMLNodeType > (const SumoXMLNodeType &nodeType, std::streamsize accuracy) |
template<> | |
std::string | toString< SumoXMLTag > (const SumoXMLTag &tag, std::streamsize accuracy) |
template<> | |
std::string | toString< TrafficLightType > (const TrafficLightType &type, std::streamsize accuracy) |
Definition in file ToString.h.
std::string toString | ( | const T & | t, |
std::streamsize | accuracy = OUTPUT_ACCURACY |
||
) | [inline] |
Template for conversions from origin format to string representation (when supplied by c++/the stl)
Definition at line 50 of file ToString.h.
Referenced by NIImporter_SUMO::_loadNetwork(), ODMatrix::add(), MSDetectorControl::add(), NBLoadedSUMOTLDef::addConnection(), NIImporter_SUMO::addConnection(), NLHandler::addConnection(), NIImporter_SUMO::addEdge(), NIXMLEdgesHandler::addEdge(), NLHandler::addEdgeLaneMeanData(), GUIEdgeControlBuilder::addLane(), NIImporter_SUMO::addLane(), NIXMLEdgesHandler::addLane(), NLJunctionControlBuilder::addLogicItem(), NIXMLEdgesHandler::addSplit(), NBTrafficLightLogic::addStep(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimTL::NIVissimTLSignal::addTo(), NLHandler::beginE3Detector(), NLHandler::beginEdgeParsing(), SUMOVehicleParserHelper::beginVTypeParsing(), NLBuilder::build(), NIVissimConnection::buildEdgeConnections(), NBEdge::buildInnerEdges(), NIVissimEdge::buildNBEdge(), MSInsertionControl::checkFlows(), NGFrame::checkOptions(), NLDetectorBuilder::checkSampleInterval(), MSNet::closeSimulation(), NBOwnTLDef::collectLinks(), NBNetBuilder::compute(), DijkstraRouterTTBase< E, V, PF >::compute(), ODMatrix::computeDeparts(), NBNode::computeInternalLaneShape(), RODFNet::computeTypes(), NIXMLEdgesHandler::deleteEdge(), NIXMLNodesHandler::deleteNode(), NBTrafficLightLogic::deletePhase(), GUISelectedStorage::deselect(), GUITriggeredRerouter::drawGL(), GUIParameterTracker::GUIParameterTrackerPanel::drawValue(), MSE3Collector::enter(), OptionsLoader::error(), OptionsLoader::fatalError(), NLDetectorBuilder::getEdgeChecking(), NLDetectorBuilder::getLaneChecking(), NBEdge::getLaneID(), NIVissimDistrictConnection::getMeanSpeed(), GeomHelper::getNormal90D_CW(), GUISUMOAbstractView::getObjectsInBoundary(), GUILaneWrapper::getPopUpMenu(), NLTriggerBuilder::getPosition(), Line::getPositionAtDistance(), Line::getPositionAtDistance2D(), ROEdge::getStoredEffort(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchAreaNo(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchBereichDef(), ROEdge::getTravelTime(), TraCIServerAPI_VehicleType::getVariable(), getVehicleEmissionTypeName(), NBNodeCont::guessTLs(), GUICompleteSchemeStorage::init(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NIImporter_OpenStreetMap::insertEdge(), NIXMLEdgesHandler::insertNodeChecking(), NIImporter_OpenStreetMap::insertNodeChecking(), MSEdge::insertVehicle(), MSLane::isInsertionSuccess(), NBNodeCont::joinTLS(), MSE3Collector::leave(), NILoader::load(), PCLoaderVisum::load(), PCLoaderArcView::load(), NIImporter_ArcView::load(), NLBuilder::load(), NIImporter_OpenStreetMap::load(), NIImporter_RobocupRescue::loadEdges(), GUISelectedStorage::loadIDs(), PCLoaderOSM::loadIfSet(), NIImporter_RobocupRescue::loadNodes(), PCLoaderDlrNavteq::loadPOIFile(), PCLoaderDlrNavteq::loadPolyFile(), main(), MSCFModel_KraussOrig1::moveHelper(), MSVehicle::moveRegardingCritical(), MSRouteProbe::MSRouteProbe(), NIXMLEdgesHandler::myEndElement(), GUISettingsHandler::myStartElement(), RODFDetectorHandler::myStartElement(), RORDLoader_TripDefs::myStartElement(), NIXMLConnectionsHandler::myStartElement(), NIXMLTypesHandler::myStartElement(), RONetHandler::myStartElement(), ROJTRTurnDefLoader::myStartElement(), ODDistrictHandler::myStartElement(), RORDLoader_SUMOBase::myStartElement(), NLHandler::myStartElement(), PCLoaderOSM::NodesHandler::myStartElement(), MSTriggeredRerouter::myStartElement(), PCLoaderOSM::EdgesHandler::myStartElement(), NIImporter_OpenStreetMap::NodesHandler::myStartElement(), NIImporter_OpenStreetMap::EdgesHandler::myStartElement(), NIImporter_OpenDrive::myStartElement(), NIVissimAbstractEdge::NIVissimAbstractEdge(), GUIGLObjectPopupMenu::onCmdCopyCursorGeoPosition(), GUIGLObjectPopupMenu::onCmdCopyCursorPosition(), GUIApplicationWindow::openNewView(), MSRouteHandler::openRoute(), PlainXMLFormatter::openTag(), OutputDevice_Network::OutputDevice_Network(), NIImporter_VISUM::parse_AreaSubPartElement(), NIImporter_VISUM::parse_Lanes(), NIImporter_VISUM::parse_Point(), NLTriggerBuilder::parseAndBuildBusStop(), SUMOVehicleParserHelper::parseCommonAttributes(), NIXMLConnectionsHandler::parseDeprecatedLaneDefinition(), RORDGenerator_ODAmounts::parseFlowAmountDef(), SUMOVehicleParserHelper::parseFlowAttributes(), GUISettingsHandler::parseTextSettings(), parseTimeLine(), SUMOVehicleParserHelper::parseVTypeEmbedded(), GUIVisualizationTextSettings::print(), NBNodeCont::printBuiltNodesStatistics(), readO(), NBNodeCont::removeSelfLoops(), MSBaseVehicle::replaceRouteEdges(), PCPolyContainer::report(), NBRequest::reportWarnings(), NIXMLTrafficLightsHandler::retrieveLaneIndex(), GUILaneWrapper::ROWdrawAction_drawLinkNo(), GUILaneWrapper::ROWdrawAction_drawTLSLinkNo(), RODFDetectorCon::save(), RONet::saveAndRemoveRoutesUntil(), GUISelectedStorage::select(), RODFRouteCont::setID(), MFXAddEditTypedTable::setItemFromControl(), MFXAddEditTypedTable::setItemFromControl_NoRelease(), GeoConvHelper::setLoaded(), NIXMLEdgesHandler::setNodes(), PositionVector::splitAt(), NBEdge::splitGeometry(), NBNode::stateCode(), GUISelectedStorage::toggleSelection(), traci::TraCIServer::TraCIServer(), NIXMLEdgesHandler::tryGetLaneSpread(), SAXWeightsHandler::tryParse(), GUISUMOAbstractView::updatePositionInformation(), NIXMLConnectionsHandler::validateLaneInfo(), MSVehicle::vsafeCriticalCont(), OptionsLoader::warning(), SUMOVTypeParameter::write(), ODMatrix::write(), MSInstantInductLoop::write(), SUMOVehicleParameter::writeAs(), PlainXMLFormatter::writeAttr(), BinaryFormatter::writeAttr(), NWWriter_SUMO::writeConnection(), NWWriter_XML::writeEdgesAndConnections(), NWWriter_SUMO::writeLane(), NWWriter_XML::writeNodes(), GUICompleteSchemeStorage::writeSettings(), ROLoader::writeStats(), traci::TraCIServer::writeStatusCmd(), NWWriter_SUMO::writeSUMOTime(), NWWriter_SUMO::writeTrafficLights(), RORouteDef_Complete::writeXMLDefinition(), RORouteDef_Alternatives::writeXMLDefinition(), RORoute::writeXMLDefinition(), MSRouteProbe::writeXMLOutput(), GeoConvHelper::x2cartesian(), and SUMOAbstractRouter< E, MSVehicle >::~SUMOAbstractRouter().
std::string toString< LaneSpreadFunction > | ( | const LaneSpreadFunction & | lsf, |
std::streamsize | accuracy | ||
) | [inline] |
Definition at line 95 of file ToString.h.
References StringBijection< T >::getString(), SUMOXMLDefinitions::LaneSpreadFunctions, and UNUSED_PARAMETER.
std::string toString< LinkDirection > | ( | const LinkDirection & | linkDir, |
std::streamsize | accuracy | ||
) | [inline] |
Definition at line 108 of file ToString.h.
References StringBijection< T >::getString(), SUMOXMLDefinitions::LinkDirections, and UNUSED_PARAMETER.
std::string toString< LinkState > | ( | const LinkState & | linkState, |
std::streamsize | accuracy | ||
) | [inline] |
Definition at line 102 of file ToString.h.
References StringBijection< T >::getString(), SUMOXMLDefinitions::LinkStates, and UNUSED_PARAMETER.
std::string toString< SUMOVehicleClass > | ( | const SUMOVehicleClass & | vClass, |
std::streamsize | accuracy | ||
) | [inline] |
Definition at line 88 of file ToString.h.
References SumoVehicleClassStrings, and UNUSED_PARAMETER.
std::string toString< SumoXMLAttr > | ( | const SumoXMLAttr & | attr, |
std::streamsize | accuracy | ||
) | [inline] |
Definition at line 67 of file ToString.h.
References SUMOXMLDefinitions::Attrs, StringBijection< T >::getString(), and UNUSED_PARAMETER.
std::string toString< SumoXMLEdgeFunc > | ( | const SumoXMLEdgeFunc & | edgeFunc, |
std::streamsize | accuracy | ||
) | [inline] |
Definition at line 81 of file ToString.h.
References SUMOXMLDefinitions::EdgeFunctions, StringBijection< T >::getString(), and UNUSED_PARAMETER.
std::string toString< SumoXMLNodeType > | ( | const SumoXMLNodeType & | nodeType, |
std::streamsize | accuracy | ||
) | [inline] |
Definition at line 74 of file ToString.h.
References StringBijection< T >::getString(), SUMOXMLDefinitions::NodeTypes, and UNUSED_PARAMETER.
std::string toString< SumoXMLTag > | ( | const SumoXMLTag & | tag, |
std::streamsize | accuracy | ||
) | [inline] |
Definition at line 60 of file ToString.h.
References StringBijection< T >::getString(), SUMOXMLDefinitions::Tags, and UNUSED_PARAMETER.
std::string toString< TrafficLightType > | ( | const TrafficLightType & | type, |
std::streamsize | accuracy | ||
) | [inline] |
Definition at line 114 of file ToString.h.
References StringBijection< T >::getString(), SUMOXMLDefinitions::TrafficLightTypes, and UNUSED_PARAMETER.