Eclipse SUMO - Simulation of Urban MObility
NIImporter_DlrNavteq::TimeRestrictionsHandler Class Reference

Importer of street names in DLRNavteq's (aka elmar) format. More...

#include <NIImporter_DlrNavteq.h>

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

Public Member Functions

void printSummary ()
 
bool report (const std::string &result)
 Parsing method. More...
 
 TimeRestrictionsHandler (NBEdgeCont &ec, NBDistrictCont &dc, time_t constructionTime)
 Constructor. More...
 
 ~TimeRestrictionsHandler ()
 Destructor. More...
 

Protected Attributes

int myConstructionEntries
 
time_t myConstructionTime
 The date for which to build the network (in case some edges are still under construction) More...
 
time_t myCS_max
 
time_t myCS_min
 
NBDistrictContmyDistrictCont
 
NBEdgeContmyEdgeCont
 The edge container. More...
 
int myFinished
 
int myNotStarted
 
int myRemovedEdges
 
int myUnderConstruction
 

Private Member Functions

TimeRestrictionsHandleroperator= (const TimeRestrictionsHandler &)
 Invalidated assignment operator. More...
 
 TimeRestrictionsHandler (const TimeRestrictionsHandler &)
 Invalidated copy constructor. More...
 

Detailed Description

Importer of street names in DLRNavteq's (aka elmar) format.

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

Definition at line 360 of file NIImporter_DlrNavteq.h.

Constructor & Destructor Documentation

◆ TimeRestrictionsHandler() [1/2]

NIImporter_DlrNavteq::TimeRestrictionsHandler::TimeRestrictionsHandler ( NBEdgeCont ec,
NBDistrictCont dc,
time_t  constructionTime 
)

Constructor.

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

Definition at line 555 of file NIImporter_DlrNavteq.cpp.

◆ ~TimeRestrictionsHandler()

NIImporter_DlrNavteq::TimeRestrictionsHandler::~TimeRestrictionsHandler ( )

Destructor.

Definition at line 569 of file NIImporter_DlrNavteq.cpp.

◆ TimeRestrictionsHandler() [2/2]

NIImporter_DlrNavteq::TimeRestrictionsHandler::TimeRestrictionsHandler ( const TimeRestrictionsHandler )
private

Invalidated copy constructor.

Member Function Documentation

◆ operator=()

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

Invalidated assignment operator.

◆ printSummary()

void NIImporter_DlrNavteq::TimeRestrictionsHandler::printSummary ( )

Definition at line 628 of file NIImporter_DlrNavteq.cpp.

References WRITE_MESSAGE.

Referenced by NIImporter_DlrNavteq::loadNetwork().

Here is the caller graph for this function:

◆ report()

bool NIImporter_DlrNavteq::TimeRestrictionsHandler::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 573 of file NIImporter_DlrNavteq.cpp.

References MAX2(), MIN2(), StringTokenizer::next(), NIImporter_DlrNavteq::readTimeRec(), StringTokenizer::WHITECHARS, and WRITE_WARNING.

Field Documentation

◆ myConstructionEntries

int NIImporter_DlrNavteq::TimeRestrictionsHandler::myConstructionEntries
protected

Definition at line 396 of file NIImporter_DlrNavteq.h.

◆ myConstructionTime

time_t NIImporter_DlrNavteq::TimeRestrictionsHandler::myConstructionTime
protected

The date for which to build the network (in case some edges are still under construction)

Definition at line 393 of file NIImporter_DlrNavteq.h.

◆ myCS_max

time_t NIImporter_DlrNavteq::TimeRestrictionsHandler::myCS_max
protected

Definition at line 395 of file NIImporter_DlrNavteq.h.

◆ myCS_min

time_t NIImporter_DlrNavteq::TimeRestrictionsHandler::myCS_min
protected

Definition at line 394 of file NIImporter_DlrNavteq.h.

◆ myDistrictCont

NBDistrictCont& NIImporter_DlrNavteq::TimeRestrictionsHandler::myDistrictCont
protected

Definition at line 390 of file NIImporter_DlrNavteq.h.

◆ myEdgeCont

NBEdgeCont& NIImporter_DlrNavteq::TimeRestrictionsHandler::myEdgeCont
protected

The edge container.

Definition at line 389 of file NIImporter_DlrNavteq.h.

◆ myFinished

int NIImporter_DlrNavteq::TimeRestrictionsHandler::myFinished
protected

Definition at line 399 of file NIImporter_DlrNavteq.h.

◆ myNotStarted

int NIImporter_DlrNavteq::TimeRestrictionsHandler::myNotStarted
protected

Definition at line 397 of file NIImporter_DlrNavteq.h.

◆ myRemovedEdges

int NIImporter_DlrNavteq::TimeRestrictionsHandler::myRemovedEdges
protected

Definition at line 400 of file NIImporter_DlrNavteq.h.

◆ myUnderConstruction

int NIImporter_DlrNavteq::TimeRestrictionsHandler::myUnderConstruction
protected

Definition at line 398 of file NIImporter_DlrNavteq.h.


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