marble
#include <WaypointParser.h>
Public Types | |
enum | Field { Longitude, Latitude, JunctionType, RoadName, TotalSecondsRemaining, RoadType } |
Public Member Functions | |
WaypointParser () | |
void | addJunctionTypeMapping (const QString &key, RoutingWaypoint::JunctionType value) |
RoutingWaypoints | parse (QTextStream &stream) const |
void | setFieldIndex (Field field, int index) |
void | setFieldSeparator (const QChar &separator) |
void | setLineSeparator (const QString &separator) |
Detailed Description
Definition at line 25 of file WaypointParser.h.
Member Enumeration Documentation
Fields which can be parsed.
Enumerator | |
---|---|
Longitude | |
Latitude | |
JunctionType | |
RoadName | |
TotalSecondsRemaining | |
RoadType |
Definition at line 29 of file WaypointParser.h.
Constructor & Destructor Documentation
Marble::WaypointParser::WaypointParser | ( | ) |
Constructor.
Definition at line 31 of file WaypointParser.cpp.
Member Function Documentation
void Marble::WaypointParser::addJunctionTypeMapping | ( | const QString & | key, |
RoutingWaypoint::JunctionType | value | ||
) |
Associate the given string key with the given junction type.
Definition at line 54 of file WaypointParser.cpp.
RoutingWaypoints Marble::WaypointParser::parse | ( | QTextStream & | stream | ) | const |
Parses the given stream and returns the extracted waypoint list.
Definition at line 59 of file WaypointParser.cpp.
void Marble::WaypointParser::setFieldIndex | ( | Field | field, |
int | index | ||
) |
Associate the zero-based field no index with the given semantic type.
Definition at line 39 of file WaypointParser.cpp.
void Marble::WaypointParser::setFieldSeparator | ( | const QChar & | separator | ) |
void Marble::WaypointParser::setLineSeparator | ( | const QString & | separator | ) |
The line separator used in the stream passed to parse.
Default is "\n"
Definition at line 44 of file WaypointParser.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:46 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.