![]() |
Eclipse 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, NBTypeCont &tc, 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 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 More... | |
NBEdgeCont & | myEdgeCont |
The edge container to store loaded edges into. More... | |
const std::string | myFile |
the file being parsed 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... | |
NBTypeCont & | myTypeCont |
The type container to retrieve type info from. More... | |
double | myVersion |
version number of current file More... | |
Static Protected Attributes | |
static const int | MISSING_COLUMN = std::numeric_limits<int>::max() |
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 139 of file NIImporter_DlrNavteq.h.
|
protected |
Definition at line 202 of file NIImporter_DlrNavteq.h.
NIImporter_DlrNavteq::EdgesHandler::EdgesHandler | ( | NBNodeCont & | nc, |
NBEdgeCont & | ec, | ||
NBTypeCont & | tc, | ||
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] | tc | The type control to retrieve types from |
[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 249 of file NIImporter_DlrNavteq.cpp.
NIImporter_DlrNavteq::EdgesHandler::~EdgesHandler | ( | ) |
Destructor.
Definition at line 263 of file NIImporter_DlrNavteq.cpp.
|
private |
Invalidated copy constructor.
|
protected |
Definition at line 416 of file NIImporter_DlrNavteq.cpp.
References StringTokenizer::get(), StringTokenizer::size(), and toString().
|
private |
build the street name for the given ids
Definition at line 443 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 267 of file NIImporter_DlrNavteq.cpp.
References NINavTeqHelper::addVehicleClasses(), NINavTeqHelper::addVehicleClassesV6(), NBEdge::disallowVehicleClass(), OptionsCont::getBool(), NINavTeqHelper::getLaneNumber(), OptionsCont::getOptions(), NBEdge::getPermissions(), NBNode::getPosition(), NINavTeqHelper::getSpeed(), LANESPREAD_CENTER, NIImporter_DlrNavteq::readVersion(), PositionVector::reverse(), NBEdge::setPermissions(), SVC_PASSENGER, SVC_SHIP, SVCAll, StringUtils::toInt(), 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 177 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 174 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 |
The type container to retrieve type info from.
Definition at line 180 of file NIImporter_DlrNavteq.h.
|
protected |
version number of current file
Definition at line 192 of file NIImporter_DlrNavteq.h.