• 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
GeoDataObject.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 2007 Murad Tagirov <tmurad@gmail.com>
9 // Copyright 2008 Jens-Michael Hoffmann <jensmh@gmx.de>
10 //
11 
12 
13 #ifndef MARBLE_GEODATAOBJECT_H
14 #define MARBLE_GEODATAOBJECT_H
15 
16 #include "geodata_export.h"
17 
18 #include "GeoDocument.h"
19 #include "Serializable.h"
20 
21 #include <QMetaType>
22 
23 namespace Marble
24 {
25 
26 class GeoDataObjectPrivate;
27 
48 class GEODATA_EXPORT GeoDataObject : public GeoNode,
49  public Serializable
50 {
51 public:
52  GeoDataObject();
53  GeoDataObject( const GeoDataObject & );
54  GeoDataObject & operator=( const GeoDataObject & );
55  virtual ~GeoDataObject();
56 
58  virtual const char* nodeType() const = 0;
59 
61  virtual GeoDataObject *parent() const;
62 
64  virtual void setParent(GeoDataObject *parent);
65 
69  QString id() const;
74  void setId( const QString &value );
75 
79  QString targetId() const;
84  void setTargetId( const QString &value );
85 
86  QString resolvePath( const QString &relativePath ) const;
87 
89  virtual void pack( QDataStream& stream ) const;
91  virtual void unpack( QDataStream& steam );
92 
93  private:
94 
95  GeoDataObjectPrivate * d;
96 
97  protected:
102  virtual bool equals(const GeoDataObject &other) const;
103 };
104 
105 }
106 
107 Q_DECLARE_METATYPE( Marble::GeoDataObject* )
108 
109 #endif
QDataStream
Marble::GeoNode
A shared base class for all classes that are mapped to a specific tag (ie.
Definition: GeoDocument.h:60
Marble::GeoDataObject
A base class for all geodata objects.
Definition: GeoDataObject.h:48
Marble::Serializable
Definition: Serializable.h:19
GeoDocument.h
QString
GEODATA_EXPORT
#define GEODATA_EXPORT
Definition: geodata_export.h:22
geodata_export.h
Serializable.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