SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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:
LineHandler

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 268 of file NIImporter_DlrNavteq.h.

Constructor & Destructor Documentation

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 404 of file NIImporter_DlrNavteq.cpp.

References UNUSED_PARAMETER.

NIImporter_DlrNavteq::NamesHandler::~NamesHandler ( )

Destructor.

Definition at line 411 of file NIImporter_DlrNavteq.cpp.

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

Invalidated copy constructor.

Member Function Documentation

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

Invalidated assignment operator.

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 415 of file NIImporter_DlrNavteq.cpp.

References StringTokenizer::getVector(), joinToString(), StringTokenizer::next(), StringTokenizer::size(), and StringTokenizer::WHITECHARS.

Field Documentation

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

The container for storing read names.

Definition at line 295 of file NIImporter_DlrNavteq.h.


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