marble
#include <GeoParser.h>
Definition at line 40 of file GeoParser.h.
Marble::GeoParser::~GeoParser |
( |
| ) |
|
|
virtual |
QString Marble::GeoParser::attribute |
( |
const char * |
attributeName | ) |
const |
virtual GeoDocument* Marble::GeoParser::createDocument |
( |
| ) |
const |
|
protectedpure virtual |
bool Marble::GeoParser::isValidElement |
( |
const QString & |
tagName | ) |
const |
|
virtual |
virtual bool Marble::GeoParser::isValidRootElement |
( |
| ) |
|
|
protectedpure virtual |
This method is intended to check if the current element being served by the GeoParser is a valid Document Root element.
This method is to be implemented by GeoDataParser/GeoSceneParser and must check based on the current XML Document type, e.g. KML, GPX etc.
- Returns
true
if the element is a valid document root.
GeoStackItem Marble::GeoParser::parentElement |
( |
unsigned int |
depth = 0 | ) |
const |
void Marble::GeoParser::raiseWarning |
( |
const QString & |
warning | ) |
|
bool Marble::GeoParser::read |
( |
QIODevice * |
device | ) |
|
Main API for reading the XML document.
This is the only method that is necessary to call to start the GeoParser. To retrieve the resulting data see
- See also
- releaseDocument() and
-
releaseModel()
- Todo:
- : Remove this workaround around Marble 1.4
Definition at line 74 of file GeoParser.cpp.
retrieve the parsed document and reset the parser If parsing was successful, retrieve the resulting document and set the contained m_document pointer to 0.
Definition at line 205 of file GeoParser.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:56 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.