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

marble

  • Marble
  • GeoParser
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Marble::GeoParser Class Referenceabstract

#include <GeoParser.h>

Inheritance diagram for Marble::GeoParser:
Inheritance graph
[legend]

Public Types

typedef QPair< QString, QString > QualifiedName
 

Public Member Functions

 GeoParser (GeoDataGenericSourceType sourceType)
 
virtual ~GeoParser ()
 
GeoDocument * activeDocument ()
 
QString attribute (const char *attributeName) const
 
virtual bool isValidElement (const QString &tagName) const
 
GeoStackItem parentElement (unsigned int depth=0) const
 
void raiseWarning (const QString &)
 
bool read (QIODevice *)
 
GeoDocument * releaseDocument ()
 

Protected Member Functions

virtual GeoDocument * createDocument () const =0
 
virtual bool isValidRootElement ()=0
 

Protected Attributes

GeoDocument * m_document
 
GeoDataGenericSourceType m_source
 

Detailed Description

Definition at line 40 of file GeoParser.h.

Member Typedef Documentation

typedef QPair<QString, QString> Marble::GeoParser::QualifiedName

Definition at line 43 of file GeoParser.h.

Constructor & Destructor Documentation

Marble::GeoParser::GeoParser ( GeoDataGenericSourceType  sourceType)
explicit

Definition at line 39 of file GeoParser.cpp.

Marble::GeoParser::~GeoParser ( )
virtual

Definition at line 46 of file GeoParser.cpp.

Member Function Documentation

GeoDocument* Marble::GeoParser::activeDocument ( )
inline

Definition at line 62 of file GeoParser.h.

QString Marble::GeoParser::attribute ( const char *  attributeName) const

Definition at line 200 of file GeoParser.cpp.

virtual GeoDocument* Marble::GeoParser::createDocument ( ) const
protectedpure virtual
bool Marble::GeoParser::isValidElement ( const QString &  tagName) const
virtual

Definition at line 117 of file GeoParser.cpp.

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

Definition at line 122 of file GeoParser.cpp.

void Marble::GeoParser::raiseWarning ( const QString &  warning)

Definition at line 193 of file GeoParser.cpp.

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.

GeoDocument * Marble::GeoParser::releaseDocument ( )

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.

Member Data Documentation

GeoDocument* Marble::GeoParser::m_document
protected

Definition at line 89 of file GeoParser.h.

GeoDataGenericSourceType Marble::GeoParser::m_source
protected

Definition at line 90 of file GeoParser.h.


The documentation for this class was generated from the following files:
  • GeoParser.h
  • GeoParser.cpp
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.

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
  • kstars
  • libkdeedu
  •   keduvocdocument
  • 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