SUMO - Simulation of Urban MObility
NIImporter_DlrNavteq Class Reference

Importer for networks stored in Elmar's format. More...

#include <NIImporter_DlrNavteq.h>

Collaboration diagram for NIImporter_DlrNavteq:
Collaboration graph

Data Structures

class  ConnectedLanesHandler
 Imports prohibitions regarding connectivity. More...
 
class  EdgesHandler
 Importer of edges stored in unsplit elmar format. More...
 
class  NamesHandler
 Importer of street names in DLRNavteq's (aka elmar) format. More...
 
class  NodesHandler
 Importer of nodes stored in unsplit elmar format. More...
 
class  ProhibitionHandler
 Imports prohibitions regarding connectivity. More...
 
class  TimeRestrictionsHandler
 Importer of street names in DLRNavteq's (aka elmar) format. More...
 
class  TrafficlightsHandler
 Importer of traffic lights stored in DLRNavteq's (aka elmar) format. More...
 

Static Public Member Functions

static void loadNetwork (const OptionsCont &oc, NBNetBuilder &nb)
 Loads content of the optionally given dlr-navteq (aka Elmar-fomat) folder. More...
 

Static Public Attributes

static const std::string GEO_SCALE
 scaling factor for geo coordinates (DLRNavteq format uses this to increase floating point precisions) More...
 
static const std::string UNDEFINED
 magic value for undefined stuff More...
 

Static Protected Member Functions

static time_t readDate (const std::string &yyyymmdd)
 
static int readPrefixedInt (const std::string &s, const std::string &prefix, int fallBack=0)
 
static time_t readTimeRec (const std::string &start, const std::string &duration)
 
static double readVersion (const std::string &line, const std::string &file)
 

Detailed Description

Importer for networks stored in Elmar's format.

Definition at line 55 of file NIImporter_DlrNavteq.h.

Member Function Documentation

◆ loadNetwork()

void NIImporter_DlrNavteq::loadNetwork ( const OptionsCont oc,
NBNetBuilder nb 
)
static

Loads content of the optionally given dlr-navteq (aka Elmar-fomat) folder.

If the option "dlr-navteq-prefix" is set, the file(s) stored therein is read and the network definition stored therein is stored within the given network builder.

If the option "dlr-navteq-prefix" is not set, this method simply returns.

Parameters
[in]ocThe options to use
[in]nbThe network builder to fill

Definition at line 65 of file NIImporter_DlrNavteq.cpp.

References OptionsCont::getBool(), NBNetBuilder::getDistrictCont(), NBNetBuilder::getEdgeCont(), NBNetBuilder::getNodeCont(), OptionsCont::getString(), NBNetBuilder::getTLLogicCont(), NBNetBuilder::getTypeCont(), OptionsCont::isDefault(), OptionsCont::isSet(), PROGRESS_BEGIN_MESSAGE, PROGRESS_DONE_MESSAGE, LineReader::readAll(), readDate(), NBEdgeCont::recheckLaneSpread(), LineReader::setFile(), and WRITE_WARNING.

Referenced by NILoader::load().

◆ readDate()

time_t NIImporter_DlrNavteq::readDate ( const std::string &  yyyymmdd)
staticprotected

Definition at line 671 of file NIImporter_DlrNavteq.cpp.

References StringUtils::toInt(), and WRITE_ERROR.

Referenced by loadNetwork().

◆ readPrefixedInt()

int NIImporter_DlrNavteq::readPrefixedInt ( const std::string &  s,
const std::string &  prefix,
int  fallBack = 0 
)
staticprotected

Definition at line 637 of file NIImporter_DlrNavteq.cpp.

Referenced by readTimeRec().

◆ readTimeRec()

time_t NIImporter_DlrNavteq::readTimeRec ( const std::string &  start,
const std::string &  duration 
)
staticprotected

◆ readVersion()

double NIImporter_DlrNavteq::readVersion ( const std::string &  line,
const std::string &  file 
)
staticprotected

Field Documentation

◆ GEO_SCALE

const std::string NIImporter_DlrNavteq::GEO_SCALE
static

scaling factor for geo coordinates (DLRNavteq format uses this to increase floating point precisions)

Definition at line 71 of file NIImporter_DlrNavteq.h.

Referenced by NIFrame::checkOptions().

◆ UNDEFINED

const std::string NIImporter_DlrNavteq::UNDEFINED
static

magic value for undefined stuff

Definition at line 74 of file NIImporter_DlrNavteq.h.

Referenced by NIImporter_DlrNavteq::ProhibitionHandler::report().


The documentation for this class was generated from the following files: