• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • Marble
  • WaypointParser
Public Types | Public Member Functions | List of all members
Marble::WaypointParser Class Reference

#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

enum Marble::WaypointParser::Field

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)

The field separator.

Default is ','

Definition at line 49 of file WaypointParser.cpp.

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:
  • WaypointParser.h
  • WaypointParser.cpp
This file is part of the KDE documentation.
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.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal