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. | |
bool | report (const std::string &result) |
Parsing method. | |
~EdgesHandler () | |
Destructor. | |
Protected Types | |
enum | ColumnName { LINK_ID = 0 , NODE_ID_FROM , NODE_ID_TO , BETWEEN_NODE_ID , LENGTH , VEHICLE_TYPE , FORM_OF_WAY , BRUNNEL_TYPE , FUNCTIONAL_ROAD_CLASS , SPEED_CATEGORY , NUMBER_OF_LANES , SPEED_LIMIT , SPEED_RESTRICTION , NAME_ID1_REGIONAL , NAME_ID2_LOCAL , HOUSENUMBERS_RIGHT , HOUSENUMBERS_LEFT , ZIP_CODE , AREA_ID , SUBAREA_ID , THROUGH_TRAFFIC , SPECIAL_RESTRICTIONS , EXTENDED_NUMBER_OF_LANES , ISRAMP , CONNECTION } |
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. | |
NBTypeCont & | myTypeCont |
The type container to retrieve type info from. | |
double | 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 140 of file NIImporter_DlrNavteq.h.
|
protected |
Definition at line 203 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 255 of file NIImporter_DlrNavteq.cpp.
NIImporter_DlrNavteq::EdgesHandler::~EdgesHandler | ( | ) |
Destructor.
Definition at line 269 of file NIImporter_DlrNavteq.cpp.
|
private |
Invalidated copy constructor.
|
protected |
Definition at line 427 of file NIImporter_DlrNavteq.cpp.
References StringTokenizer::get(), StringTokenizer::size(), TLF, and toString().
|
private |
build the street name for the given ids
Definition at line 454 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 273 of file NIImporter_DlrNavteq.cpp.
References NINavTeqHelper::addVehicleClasses(), NINavTeqHelper::addVehicleClassesV6(), CENTER, CONNECTION, NBEdge::disallowVehicleClass(), OptionsCont::getBool(), NINavTeqHelper::getLaneNumber(), OptionsCont::getOptions(), NBNode::getPosition(), NINavTeqHelper::getSpeed(), NIImporter_DlrNavteq::keepLength, NIImporter_DlrNavteq::readVersion(), PositionVector::reverse(), RIGHT, NBEdge::setLoadedLength(), NBEdge::setPermissions(), SVC_PASSENGER, SVC_SHIP, TLF, StringUtils::toDouble(), StringUtils::toInt(), NBEdge::UNSPECIFIED_FRICTION, NBEdge::UNSPECIFIED_OFFSET, NBEdge::UNSPECIFIED_WIDTH, and StringTokenizer::WHITECHARS.
|
staticprotected |
Definition at line 201 of file NIImporter_DlrNavteq.h.
|
protected |
the version number of the edge file being parsed
Definition at line 196 of file NIImporter_DlrNavteq.h.
|
protected |
The edge container to store loaded edges into.
Definition at line 178 of file NIImporter_DlrNavteq.h.
|
protected |
the file being parsed
Definition at line 199 of file NIImporter_DlrNavteq.h.
|
protected |
Previously read edge geometries (manipulated during use)
Definition at line 184 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 187 of file NIImporter_DlrNavteq.h.
|
protected |
Whether node positions shall not be added to the edge's geometry.
Definition at line 190 of file NIImporter_DlrNavteq.h.
|
protected |
The type container to retrieve type info from.
Definition at line 181 of file NIImporter_DlrNavteq.h.
|
protected |
version number of current file
Definition at line 193 of file NIImporter_DlrNavteq.h.