• 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
  • src
  • plugins
  • runner
  • osm
src/plugins/runner/osm/OsmParser.cpp
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 Thibaut Gridel <tgridel@free.fr>
9 
10 #include "OsmParser.h"
11 #include "OsmElementDictionary.h"
12 #include "GeoDataDocument.h"
13 
14 #include "OsmNodeFactory.h"
15 #include "OsmWayFactory.h"
16 #include "OsmRelationFactory.h"
17 #include "OsmGlobals.h"
18 
19 namespace Marble {
20 
21 OsmParser::OsmParser()
22  : GeoParser( 0 )
23 {
24 }
25 
26 OsmParser::~OsmParser()
27 {
28  osm::OsmRelationFactory::clear();
29  osm::OsmWayFactory::clear();
30  osm::OsmNodeFactory::clear();
31  osm::OsmGlobals::cleanUpDummyPlacemarks();
32 }
33 
34 bool OsmParser::isValidRootElement()
35 {
36  return isValidElement(osm::osmTag_osm);
37 }
38 
39 bool OsmParser::isValidElement(const QString& tagName) const
40 {
41  if (!GeoParser::isValidElement(tagName))
42  return false;
43 
44  //always "valid" because there is no namespace
45  return true;
46 }
47 
48 GeoDocument* OsmParser::createDocument() const
49 {
50  return new GeoDataDocument;
51 }
52 
53 }
OsmRelationFactory.h
GeoDataDocument.h
OsmNodeFactory.h
OsmWayFactory.h
Marble::osm::OsmRelationFactory::clear
static void clear()
Clean up relations Removes all relations from factory.
Definition: OsmRelationFactory.cpp:37
Marble::GeoParser
Definition: GeoParser.h:40
OsmElementDictionary.h
OsmGlobals.h
Marble::OsmParser::OsmParser
OsmParser()
Definition: src/plugins/runner/osm/OsmParser.cpp:21
Marble::GeoParser::isValidElement
virtual bool isValidElement(const QString &tagName) const
Definition: GeoParser.cpp:117
Marble::osm::osmTag_osm
const char * osmTag_osm
Definition: OsmElementDictionary.cpp:19
Marble::OsmParser::~OsmParser
virtual ~OsmParser()
Definition: src/plugins/runner/osm/OsmParser.cpp:26
Marble::osm::OsmWayFactory::clear
static void clear()
Clean up ways Removes all ways from factory.
Definition: OsmWayFactory.cpp:36
Marble::osm::OsmNodeFactory::clear
static void clear()
Clean up nodes Removes all nodes from factory.
Definition: OsmNodeFactory.cpp:34
OsmParser.h
Marble::osm::OsmGlobals::cleanUpDummyPlacemarks
static void cleanUpDummyPlacemarks()
Definition: OsmGlobals.cpp:79
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:52 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