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

marble

  • sources
  • kde-4.12
  • kdeedu
  • marble
  • tools
  • osm-addresses
  • xml
XmlParser.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2011 Dennis Nienhüser <earthwings@gentoo.org>
9 //
10 
11 #ifndef MARBLE_XMLPARSER_H
12 #define MARBLE_XMLPARSER_H
13 
14 #include "../OsmParser.h"
15 
16 #include "Writer.h"
17 #include "OsmRegion.h"
18 #include "OsmPlacemark.h"
19 #include "OsmRegionTree.h"
20 
21 #include "GeoDataLineString.h"
22 #include "GeoDataPolygon.h"
23 
24 #include <QObject>
25 #include <QFileInfo>
26 #include <QMap>
27 #include <QList>
28 #include <QPair>
29 #include <QXmlDefaultHandler>
30 
31 namespace Marble
32 {
33 
34 class XmlParser : public OsmParser, private QXmlDefaultHandler
35 {
36  Q_OBJECT
37 public:
38  explicit XmlParser( QObject *parent = 0 );
39 
40 protected:
41  virtual bool parse( const QFileInfo &file, int pass, bool &needAnotherPass );
42 
43 private:
44  virtual bool startElement ( const QString & namespaceURI, const QString & localName, const QString & qName, const QXmlAttributes & atts );
45 
46  virtual bool endElement ( const QString & namespaceURI, const QString & localName, const QString & qName );
47 
48  Node m_node;
49 
50  Way m_way;
51 
52  Relation m_relation;
53 
54  int m_id;
55 
56  ElementType m_element;
57 
58 };
59 
60 }
61 
62 #endif // MARBLE_XMLPARSER_H
Marble::ElementType
ElementType
Definition: tools/osm-addresses/OsmParser.h:32
Marble::XmlParser::parse
virtual bool parse(const QFileInfo &file, int pass, bool &needAnotherPass)
Definition: XmlParser.cpp:24
GeoDataPolygon.h
Marble::Way
Definition: tools/osm-addresses/OsmParser.h:79
OsmPlacemark.h
Marble::Relation
Definition: tools/osm-addresses/OsmParser.h:122
Marble::XmlParser
Definition: XmlParser.h:34
QObject
OsmRegionTree.h
GeoDataLineString.h
Marble::Node
Definition: tools/osm-addresses/OsmParser.h:71
OsmRegion.h
QXmlDefaultHandler
Writer.h
Marble::XmlParser::XmlParser
XmlParser(QObject *parent=0)
Definition: XmlParser.cpp:18
Marble::OsmParser
Definition: src/plugins/runner/osm/OsmParser.h:17
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:53 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