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

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • lib
  • marble
  • geodata
  • data
GeoDataExtendedData.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 2010 Harshit Jain <hjain.itbhu@gmail.com>
9 // Copyright 2011 Niko Sams <niko.sams@gmail.com>
10 //
11 
12 #ifndef MARBLE_GEODATAEXTENDEDDATA_H
13 #define MARBLE_GEODATAEXTENDEDDATA_H
14 
15 #include <QString>
16 
17 #include "GeoDataObject.h"
18 #include "GeoDataData.h"
19 
20 #include "geodata_export.h"
21 #include <QHash>
22 
23 namespace Marble
24 {
25 
26 class GeoDataSimpleArrayData;
27 
28 class GeoDataExtendedDataPrivate;
29 
35 class GEODATA_EXPORT GeoDataExtendedData : public GeoDataObject
36 {
37  public:
38  GeoDataExtendedData();
39  GeoDataExtendedData( const GeoDataExtendedData& other );
40  virtual ~GeoDataExtendedData();
41 
43  virtual const char* nodeType() const;
44 
48  GeoDataExtendedData& operator=( const GeoDataExtendedData& other );
49 
50  bool operator==( const GeoDataExtendedData& other ) const;
51  bool operator!=( const GeoDataExtendedData& other ) const;
52 
56  GeoDataData value( const QString& key ) const;
57 
61  void addValue( const GeoDataData& data );
62 
66  QHash< QString, GeoDataData >::const_iterator constBegin( ) const;
67 
72  QHash< QString, GeoDataData >::const_iterator constEnd( ) const;
73 
78  int size( ) const;
79 
83  bool isEmpty( ) const;
84 
88  bool contains( const QString &key ) const;
89 
93  GeoDataData& valueRef( const QString& key ) const;
94 
100  void setSimpleArrayData( const QString& key, GeoDataSimpleArrayData* values );
101 
105  GeoDataSimpleArrayData* simpleArrayData( const QString& key ) const;
106 
107 
112  virtual void pack( QDataStream& stream ) const;
113 
118  virtual void unpack( QDataStream& stream );
119 
120 private:
121  GeoDataExtendedDataPrivate * const d;
122 };
123 
124 }
125 
126 #endif
QDataStream
Marble::GeoDataObject
A base class for all geodata objects.
Definition: GeoDataObject.h:48
Marble::operator==
bool operator==(const DownloadPolicyKey &lhs, const DownloadPolicyKey &rhs)
Definition: DownloadPolicy.h:49
Marble::GeoDataExtendedData
a class which allows to add custom data to KML Feature.
Definition: GeoDataExtendedData.h:35
Marble::GeoDataSimpleArrayData
Definition: GeoDataSimpleArrayData.h:22
Marble::GeoDataExtendedDataPrivate
Definition: GeoDataExtendedData_p.h:25
GeoDataObject.h
Marble::operator!=
bool operator!=(GeoDataLatLonBox const &lhs, GeoDataLatLonBox const &rhs)
Definition: GeoDataLatLonBox.cpp:59
QString
QHash::const_iterator
Marble::GeoDataData
Definition: GeoDataData.h:26
GeoDataData.h
GEODATA_EXPORT
#define GEODATA_EXPORT
Definition: geodata_export.h:22
geodata_export.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 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