SUMO - Simulation of Urban MObility
|
Importer of edges stored in unsplit elmar format. More...
#include <NIImporter_DlrNavteq.h>
Public Member Functions | |
EdgesHandler (NBNodeCont &nc, NBEdgeCont &ec, const std::string &file, std::map< std::string, PositionVector > &geoms, std::map< std::string, std::string > &streetNames) | |
Constructor. More... | |
bool | report (const std::string &result) |
Parsing method. More... | |
~EdgesHandler () | |
Destructor. More... | |
Protected Attributes | |
NBEdgeCont & | myEdgeCont |
The edge container to store loaded edges into. More... | |
std::map< std::string, PositionVector > & | myGeoms |
Previously read edge geometries (manipulated during use) More... | |
NBNodeCont & | myNodeCont |
The node container to get the referenced nodes from. More... | |
std::map< std::string, std::string > & | myStreetNames |
Previously read streat names (non-const because operate[] is more convenient) More... | |
bool | myTryIgnoreNodePositions |
Whether node positions shall not be added to the edge's geometry. More... | |
Private Member Functions | |
EdgesHandler (const EdgesHandler &) | |
Invalidated copy constructor. More... | |
std::string | getStreetNameFromIDs (const std::string ®ionalID, const std::string &localID) const |
build the street name for the given ids More... | |
EdgesHandler & | operator= (const EdgesHandler &) |
Invalidated assignment operator. More... | |
Importer of edges stored in unsplit elmar format.
Being a LineHandler, this class retrieves each line from a LineReader and parses these information assuming they contain edge definitions in DLRNavteq's unsplit format.
Definition at line 142 of file NIImporter_DlrNavteq.h.
NIImporter_DlrNavteq::EdgesHandler::EdgesHandler | ( | NBNodeCont & | nc, |
NBEdgeCont & | ec, | ||
const std::string & | file, | ||
std::map< std::string, PositionVector > & | geoms, | ||
std::map< std::string, std::string > & | streetNames | ||
) |
Constructor.
[in] | nc | The node control to retrieve nodes from |
in,filled] | ec The edge control to insert loaded edges into | |
[in] | file | The name of the parsed file |
[in] | geoms | The previously read edge geometries |
[in] | streetNames | The previously read street names |
Definition at line 205 of file NIImporter_DlrNavteq.cpp.
References UNUSED_PARAMETER.
NIImporter_DlrNavteq::EdgesHandler::~EdgesHandler | ( | ) |
Destructor.
Definition at line 214 of file NIImporter_DlrNavteq.cpp.
|
private |
Invalidated copy constructor.
|
private |
build the street name for the given ids
Definition at line 338 of file NIImporter_DlrNavteq.cpp.
|
private |
Invalidated assignment operator.
|
virtual |
Parsing method.
Implementation of the LineHandler-interface called by a LineReader; interprets the retrieved information and stores it into "myEdgeCont".
[in] | result | The read line |
ProcessError | if something fails |
Implements LineHandler.
Definition at line 218 of file NIImporter_DlrNavteq.cpp.
References TplConvert::_2int(), TplConvert::_2SUMOReal(), NINavTeqHelper::addVehicleClasses(), NBEdge::disallowVehicleClass(), NINavTeqHelper::getLaneNumber(), NBNode::getPosition(), NINavTeqHelper::getSpeed(), StringTokenizer::getVector(), LANESPREAD_CENTER, StringTokenizer::next(), PositionVector::push_back(), PositionVector::push_front(), PositionVector::reverse(), SUMOReal, SVC_PASSENGER, NBEdge::UNSPECIFIED_OFFSET, NBEdge::UNSPECIFIED_WIDTH, and StringTokenizer::WHITECHARS.
|
protected |
The edge container to store loaded edges into.
Definition at line 178 of file NIImporter_DlrNavteq.h.
|
protected |
Previously read edge geometries (manipulated during use)
Definition at line 181 of file NIImporter_DlrNavteq.h.
|
protected |
The node container to get the referenced nodes from.
Definition at line 175 of file NIImporter_DlrNavteq.h.
|
protected |
Previously read streat names (non-const because operate[] is more convenient)
Definition at line 184 of file NIImporter_DlrNavteq.h.
|
protected |
Whether node positions shall not be added to the edge's geometry.
Definition at line 187 of file NIImporter_DlrNavteq.h.