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

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

#include <NIImporter_DlrNavteq.h>

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

Public Member Functions

 NamesHandler (const std::string &file, std::map< std::string, std::string > &streetNames)
 Constructor. More...
 
bool report (const std::string &result)
 Parsing method. More...
 
 ~NamesHandler ()
 Destructor. More...
 

Protected Attributes

std::map< std::string, std::string > & myStreetNames
 The container for storing read names. More...
 

Private Member Functions

 NamesHandler (const NamesHandler &)
 Invalidated copy constructor. More...
 
NamesHandleroperator= (const NamesHandler &)
 Invalidated assignment operator. 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 312 of file NIImporter_DlrNavteq.h.

Constructor & Destructor Documentation

◆ NamesHandler() [1/2]

NIImporter_DlrNavteq::NamesHandler::NamesHandler ( const std::string &  file,
std::map< std::string, std::string > &  streetNames 
)

Constructor.

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

Definition at line 522 of file NIImporter_DlrNavteq.cpp.

References UNUSED_PARAMETER.

◆ ~NamesHandler()

NIImporter_DlrNavteq::NamesHandler::~NamesHandler ( )

Destructor.

Definition at line 529 of file NIImporter_DlrNavteq.cpp.

◆ NamesHandler() [2/2]

NIImporter_DlrNavteq::NamesHandler::NamesHandler ( const NamesHandler )
private

Invalidated copy constructor.

Member Function Documentation

◆ operator=()

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

Invalidated assignment operator.

◆ report()

bool NIImporter_DlrNavteq::NamesHandler::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 533 of file NIImporter_DlrNavteq.cpp.

References StringTokenizer::next(), StringTokenizer::size(), and StringTokenizer::TAB.

Field Documentation

◆ myStreetNames

std::map<std::string, std::string>& NIImporter_DlrNavteq::NamesHandler::myStreetNames
protected

The container for storing read names.

Definition at line 339 of file NIImporter_DlrNavteq.h.


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