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. | |
bool | report (const std::string &result) |
Parsing method. | |
~EdgesHandler () | |
Destructor. |
Protected Member Functions | |
std::string | getColumn (const StringTokenizer &st, ColumnName name, const std::string fallback="") |
Protected Attributes | |
std::vector< int > | myColumns |
the version number of the edge file being parsed | |
NBEdgeCont & | myEdgeCont |
The edge container to store loaded edges into. | |
const std::string | myFile |
the file being parsed | |
std::map< std::string, PositionVector > & | myGeoms |
Previously read edge geometries (manipulated during use) | |
NBNodeCont & | myNodeCont |
The node container to get the referenced nodes from. | |
std::map< std::string, std::string > & | myStreetNames |
Previously read streat names (non-const because operate[] is more convenient) | |
bool | myTryIgnoreNodePositions |
Whether node positions shall not be added to the edge's geometry. | |
SUMOReal | myVersion |
version number of current file |
Static Protected Attributes | |
static const int | MISSING_COLUMN = std::numeric_limits<int>::max() |
Private Member Functions | |
EdgesHandler (const EdgesHandler &) | |
Invalidated copy constructor. | |
std::string | getStreetNameFromIDs (const std::string ®ionalID, const std::string &localID) const |
build the street name for the given ids | |
EdgesHandler & | operator= (const EdgesHandler &) |
Invalidated assignment operator. |
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 143 of file NIImporter_DlrNavteq.h.
|
protected |
Definition at line 202 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.
NIImporter_DlrNavteq::EdgesHandler::~EdgesHandler | ( | ) |
Destructor.
Definition at line 218 of file NIImporter_DlrNavteq.cpp.
|
private |
Invalidated copy constructor.
|
protected |
Definition at line 358 of file NIImporter_DlrNavteq.cpp.
References StringTokenizer::get(), StringTokenizer::size(), and toString().
|
private |
build the street name for the given ids
Definition at line 385 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 222 of file NIImporter_DlrNavteq.cpp.
References TplConvert::_2int(), TplConvert::_2SUMOReal(), NINavTeqHelper::addVehicleClasses(), NINavTeqHelper::addVehicleClassesV6(), NBEdge::disallowVehicleClass(), NINavTeqHelper::getLaneNumber(), NBNode::getPosition(), NINavTeqHelper::getSpeed(), LANESPREAD_CENTER, PositionVector::push_back(), PositionVector::push_front(), PositionVector::reverse(), SUMOReal, SVC_PASSENGER, toString(), NBEdge::UNSPECIFIED_OFFSET, NBEdge::UNSPECIFIED_WIDTH, and StringTokenizer::WHITECHARS.
|
staticprotected |
Definition at line 200 of file NIImporter_DlrNavteq.h.
|
protected |
the version number of the edge file being parsed
Definition at line 195 of file NIImporter_DlrNavteq.h.
|
protected |
The edge container to store loaded edges into.
Definition at line 180 of file NIImporter_DlrNavteq.h.
|
protected |
the file being parsed
Definition at line 198 of file NIImporter_DlrNavteq.h.
|
protected |
Previously read edge geometries (manipulated during use)
Definition at line 183 of file NIImporter_DlrNavteq.h.
|
protected |
The node container to get the referenced nodes from.
Definition at line 177 of file NIImporter_DlrNavteq.h.
|
protected |
Previously read streat names (non-const because operate[] is more convenient)
Definition at line 186 of file NIImporter_DlrNavteq.h.
|
protected |
Whether node positions shall not be added to the edge's geometry.
Definition at line 189 of file NIImporter_DlrNavteq.h.
|
protected |
version number of current file
Definition at line 192 of file NIImporter_DlrNavteq.h.