Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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
 
virtual bool report (const std::string &result)=0
 Method that obatins a line read by the LineReader.
 
virtual ~LineHandler ()
 (virtual) destructor
 

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::NodesHandler, NIImporter_DlrNavteq::EdgesHandler, NIImporter_DlrNavteq::TrafficlightsHandler, NIImporter_DlrNavteq::NamesHandler, NIImporter_DlrNavteq::TimeRestrictionsHandler, NIImporter_DlrNavteq::ProhibitionHandler, and NIImporter_DlrNavteq::ConnectedLanesHandler.

Referenced by LineReader::readLine().

Here is the caller graph for this function:

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