Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
NIImporter_DlrNavteq::ProhibitionHandler Class Reference

Imports prohibitions regarding connectivity. More...

#include <NIImporter_DlrNavteq.h>

Inheritance diagram for NIImporter_DlrNavteq::ProhibitionHandler:
[legend]
Collaboration diagram for NIImporter_DlrNavteq::ProhibitionHandler:
[legend]

Public Member Functions

 ProhibitionHandler (NBEdgeCont &ne, const std::string &file, time_t constructionTime)
 Constructor.
 
bool report (const std::string &result)
 Parsing method.
 
 ~ProhibitionHandler ()
 Destructor.
 

Protected Attributes

time_t myConstructionTime
 
NBEdgeContmyEdgeCont
 The edge container to store loaded edges into.
 
const std::string myFile
 
double myVersion
 

Private Member Functions

ProhibitionHandleroperator= (const ProhibitionHandler &)
 Invalidated assignment operator.
 
 ProhibitionHandler (const ProhibitionHandler &)
 Invalidated copy constructor.
 

Detailed Description

Imports prohibitions regarding connectivity.

Being a LineHandler, this class retrieves each line from a LineReader and parses these information assuming they contain prohibited manoeuver definitions in DLRNavteq's format.

Definition at line 421 of file NIImporter_DlrNavteq.h.

Constructor & Destructor Documentation

◆ ProhibitionHandler() [1/2]

NIImporter_DlrNavteq::ProhibitionHandler::ProhibitionHandler ( NBEdgeCont ne,
const std::string &  file,
time_t  constructionTime 
)

Constructor.

Parameters
[in]fileThe name of the parsed file
[filled]streetNames output container for read names

Definition at line 711 of file NIImporter_DlrNavteq.cpp.

◆ ~ProhibitionHandler()

NIImporter_DlrNavteq::ProhibitionHandler::~ProhibitionHandler ( )

Destructor.

Definition at line 720 of file NIImporter_DlrNavteq.cpp.

◆ ProhibitionHandler() [2/2]

NIImporter_DlrNavteq::ProhibitionHandler::ProhibitionHandler ( const ProhibitionHandler )
private

Invalidated copy constructor.

Member Function Documentation

◆ operator=()

ProhibitionHandler & NIImporter_DlrNavteq::ProhibitionHandler::operator= ( const ProhibitionHandler )
private

Invalidated assignment operator.

◆ report()

bool NIImporter_DlrNavteq::ProhibitionHandler::report ( const std::string &  result)
virtual

Parsing method.

Implementation of the LineHandler-interface called by a LineReader; interprets the retrieved information and stores the streetNames

Parameters
[in]resultThe read line
Returns
Whether the parsing shall continue
Exceptions
ProcessErrorif something fails
See also
LineHandler::report

Implements LineHandler.

Definition at line 724 of file NIImporter_DlrNavteq.cpp.

References StringTokenizer::get(), StringTokenizer::next(), NIImporter_DlrNavteq::readVersion(), NBEdge::removeFromConnections(), StringTokenizer::size(), StringTokenizer::TAB, TL, NIImporter_DlrNavteq::UNDEFINED, and WRITE_WARNINGF.

Field Documentation

◆ myConstructionTime

time_t NIImporter_DlrNavteq::ProhibitionHandler::myConstructionTime
protected

Definition at line 451 of file NIImporter_DlrNavteq.h.

◆ myEdgeCont

NBEdgeCont& NIImporter_DlrNavteq::ProhibitionHandler::myEdgeCont
protected

The edge container to store loaded edges into.

Definition at line 448 of file NIImporter_DlrNavteq.h.

◆ myFile

const std::string NIImporter_DlrNavteq::ProhibitionHandler::myFile
protected

Definition at line 449 of file NIImporter_DlrNavteq.h.

◆ myVersion

double NIImporter_DlrNavteq::ProhibitionHandler::myVersion
protected

Definition at line 450 of file NIImporter_DlrNavteq.h.


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