SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ToString.h File Reference
#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<typename T , typename T_BETWEEN >
std::string joinToString (const std::vector< T > &v, const T_BETWEEN &between, std::streamsize accuracy=OUTPUT_ACCURACY)
 
template<typename T , typename T_BETWEEN >
std::string joinToString (const std::set< T > &s, const T_BETWEEN &between, std::streamsize accuracy=OUTPUT_ACCURACY)
 
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)
 

Detailed Description

Author
Christian Roessel
Daniel Krajzewicz
Jakob Erdmann
Date
Wed, 23 Sep 2002
Version
Id:
ToString.h 12872 2012-10-19 11:14:03Z behrisch

Definition in file ToString.h.

Function Documentation

template<typename T , typename T_BETWEEN >
std::string joinToString ( const std::vector< T > &  v,
const T_BETWEEN &  between,
std::streamsize  accuracy = OUTPUT_ACCURACY 
)
inline
template<typename T , typename T_BETWEEN >
std::string joinToString ( const std::set< T > &  s,
const T_BETWEEN &  between,
std::streamsize  accuracy = OUTPUT_ACCURACY 
)
inline

Definition at line 137 of file ToString.h.

References toString().

template<class T >
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 ODMatrix::add(), MSDetectorControl::add(), NBLoadedSUMOTLDef::addConnection(), NIImporter_SUMO::addConnection(), NLHandler::addConnection(), NIImporter_SUMO::addEdge(), GUIEdgeControlBuilder::addLane(), NIXMLEdgesHandler::addLane(), NLJunctionControlBuilder::addLogicItem(), NIXMLEdgesHandler::addSplit(), NBTrafficLightLogic::addStep(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimTL::NIVissimTLSignal::addTo(), NLBuilder::build(), NIVissimConnection::buildEdgeConnections(), NBEdge::buildInnerEdges(), NIVissimEdge::buildNBEdge(), TraCIAPI::check_commandGetResult(), TraCIAPI::check_resultState(), MSInsertionControl::checkFlows(), NGFrame::checkOptions(), NIFrame::checkOptions(), NLDetectorBuilder::checkSampleInterval(), MSNet::closeSimulation(), NBOwnTLDef::collectLinks(), NBNetBuilder::compute(), DijkstraRouterTTBase< MSEdge, SUMOVehicle, prohibited_withRestrictions< MSEdge, SUMOVehicle > >::compute(), ODMatrix::computeDeparts(), NBNode::computeInternalLaneShape(), RODFNet::computeTypes(), NIXMLEdgesHandler::deleteEdge(), NIXMLNodesHandler::deleteNode(), NBTrafficLightLogic::deletePhase(), GUISelectedStorage::deselect(), MSLane::detectCollisions(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUIVehicle::drawGLAdditional(), GUIParameterTracker::GUIParameterTrackerPanel::drawValue(), MSE3Collector::enter(), OptionsLoader::error(), OptionsLoader::fatalError(), NLDetectorBuilder::getEdgeChecking(), NLDetectorBuilder::getLaneChecking(), NBEdge::getLaneID(), NIVissimDistrictConnection::getMeanSpeed(), GeomHelper::getNormal90D_CW(), GUISUMOAbstractView::getObjectsInBoundary(), GUILaneWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), 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(), NIImporter_OpenStreetMap::insertNodeChecking(), MSEdge::insertVehicle(), SUMOVehicleParameter::interpretEdgePos(), MSLane::isInsertionSuccess(), NBNodeCont::joinTLS(), joinToString(), MSE3Collector::leave(), NILoader::load(), PCLoaderVisum::load(), PCLoaderArcView::load(), NIImporter_ArcView::load(), NLBuilder::load(), NIImporter_OpenStreetMap::load(), NIImporter_RobocupRescue::loadEdges(), GUISelectedStorage::loadIDs(), PCLoaderOSM::loadIfSet(), MFXImageHelper::loadImage(), NIImporter_OpenDrive::loadNetwork(), NIImporter_RobocupRescue::loadNodes(), PCLoaderDlrNavteq::loadPOIFile(), PCLoaderDlrNavteq::loadPolyFile(), main(), MSVehicle::moveChecked(), MSCFModel_Daniel1::moveHelper(), MSCFModel_SmartSK::moveHelper(), MSRouteProbe::MSRouteProbe(), NIXMLEdgesHandler::myEndElement(), GUISettingsHandler::myStartElement(), NIXMLConnectionsHandler::myStartElement(), PCLoaderOSM::NodesHandler::myStartElement(), NIImporter_MATSim::EdgesHandler::myStartElement(), PCLoaderOSM::EdgesHandler::myStartElement(), NIImporter_OpenStreetMap::NodesHandler::myStartElement(), NIImporter_OpenStreetMap::EdgesHandler::myStartElement(), NIImporter_OpenDrive::myStartElement(), NIVissimAbstractEdge::NIVissimAbstractEdge(), GUIDialog_ViewSettings::onCmdColorChange(), GUIGLObjectPopupMenu::onCmdCopyCursorGeoPosition(), GUIGLObjectPopupMenu::onCmdCopyCursorPosition(), GUIApplicationWindow::openNewView(), MSRouteHandler::openRoute(), MSRouteHandler::openRouteDistribution(), PlainXMLFormatter::openTag(), OutputDevice_Network::OutputDevice_Network(), NIImporter_VISUM::parse_Lanes(), NIImporter_VISUM::parse_Point(), NIXMLConnectionsHandler::parseDeprecatedLaneDefinition(), SUMOSAXReader::parseNext(), GUISettingsHandler::parseTextSettings(), parseTimeLine(), SUMOVehicleParserHelper::parseVTypeEmbedded(), GUIVisualizationTextSettings::print(), NBNodeCont::printBuiltNodesStatistics(), TraCIServerAPI_Vehicle::processSet(), readO(), NBNodeCont::removeSelfLoops(), MSBaseVehicle::replaceRouteEdges(), PCPolyContainer::report(), NBRequest::reportWarnings(), NIXMLTrafficLightsHandler::retrieveLaneIndex(), GUILaneWrapper::ROWdrawAction_drawLinkNo(), GUILaneWrapper::ROWdrawAction_drawTLSLinkNo(), RONet::saveAndRemoveRoutesUntil(), GUISelectedStorage::select(), RODFRouteCont::setID(), MFXAddEditTypedTable::setItemFromControl(), MFXAddEditTypedTable::setItemFromControl_NoRelease(), GeoConvHelper::setLoaded(), PositionVector::splitAt(), NBEdge::splitGeometry(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::stretchLogic(), GUISelectedStorage::toggleSelection(), traci::TraCIServer::TraCIServer(), NIXMLEdgesHandler::tryGetLaneSpread(), SAXWeightsHandler::tryParse(), GUISUMOAbstractView::updatePositionInformation(), NIXMLConnectionsHandler::validateLaneInfo(), OptionsLoader::warning(), SUMOVTypeParameter::write(), MSInstantInductLoop::write(), SUMOVehicleParameter::writeAs(), NBSign::writeAsPOI(), PlainXMLFormatter::writeAttr(), BinaryFormatter::writeAttr(), NWWriter_SUMO::writeConnection(), NWWriter_XML::writeEdgesAndConnections(), RODFDetector::writeEmitterDefinition(), RODFDetectorCon::writeEmitterPOIs(), OutputDevice::writeHeader(), NWWriter_SUMO::writeLane(), NWWriter_XML::writeNodes(), GUICompleteSchemeStorage::writeSettings(), ROLoader::writeStats(), traci::TraCIServer::writeStatusCmd(), NWWriter_SUMO::writeSUMOTime(), NWWriter_SUMO::writeTrafficLights(), RORoute::writeXMLDefinition(), MSRouteProbe::writeXMLOutput(), GeoConvHelper::x2cartesian(), and SUMOAbstractRouter< ROEdge, ROVehicle >::~SUMOAbstractRouter().

template<>
std::string toString< LaneSpreadFunction > ( const LaneSpreadFunction lsf,
std::streamsize  accuracy 
)
inline
template<>
std::string toString< LinkDirection > ( const LinkDirection linkDir,
std::streamsize  accuracy 
)
inline
template<>
std::string toString< LinkState > ( const LinkState linkState,
std::streamsize  accuracy 
)
inline
template<>
std::string toString< SUMOVehicleClass > ( const SUMOVehicleClass vClass,
std::streamsize  accuracy 
)
inline

Definition at line 88 of file ToString.h.

References SumoVehicleClassStrings, and UNUSED_PARAMETER.

template<>
std::string toString< SumoXMLAttr > ( const SumoXMLAttr attr,
std::streamsize  accuracy 
)
inline
template<>
std::string toString< SumoXMLEdgeFunc > ( const SumoXMLEdgeFunc edgeFunc,
std::streamsize  accuracy 
)
inline
template<>
std::string toString< SumoXMLNodeType > ( const SumoXMLNodeType nodeType,
std::streamsize  accuracy 
)
inline
template<>
std::string toString< SumoXMLTag > ( const SumoXMLTag tag,
std::streamsize  accuracy 
)
inline
template<>
std::string toString< TrafficLightType > ( const TrafficLightType type,
std::streamsize  accuracy 
)
inline