Eclipse SUMO - Simulation of Urban MObility
LineHandler Class Referenceabstract

Interface definition for a class which retrieves lines from a LineHandler. More...

#include <LineHandler.h>

Inheritance diagram for LineHandler:
[legend]

Public Member Functions

 LineHandler ()
 constructor More...
 
virtual bool report (const std::string &result)=0
 Method that obatins a line read by the LineReader. More...
 
virtual ~LineHandler ()
 (virtual) destructor More...
 

Detailed Description

Interface definition for a class which retrieves lines from a LineHandler.

The LineHandler is an interface for a class which retrieves information from a file linewise. The lines are suppoted to this class using the "report"-method. The LineHandler is used together with the LineReader which reads the lines from a file.

See also
LineReader

Definition at line 42 of file LineHandler.h.

Constructor & Destructor Documentation

◆ LineHandler()

LineHandler::LineHandler ( )
inline

constructor

Definition at line 45 of file LineHandler.h.

◆ ~LineHandler()

virtual LineHandler::~LineHandler ( )
inlinevirtual

(virtual) destructor

Definition at line 49 of file LineHandler.h.

Member Function Documentation

◆ report()

virtual bool LineHandler::report ( const std::string &  result)
pure virtual

Method that obatins a line read by the LineReader.

Real interface method, used by a LineReader, which retrieves lines from a file

Parameters
[in]resultThe read line
Returns
Whether the caller shall continue with reading

Implemented in NIImporter_DlrNavteq::ConnectedLanesHandler, NIImporter_DlrNavteq::ProhibitionHandler, NIImporter_DlrNavteq::TimeRestrictionsHandler, NIImporter_DlrNavteq::NamesHandler, NIImporter_DlrNavteq::TrafficlightsHandler, NIImporter_DlrNavteq::EdgesHandler, and NIImporter_DlrNavteq::NodesHandler.

Referenced by LineReader::readLine().

Here is the caller graph for this function:

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