• 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
Serializable.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 //
10 
11 
12 #ifndef MARBLE_SERIALIZABLE_H
13 #define MARBLE_SERIALIZABLE_H
14 
15 class QDataStream;
16 
17 namespace Marble {
18 
19 class Serializable
20 {
21  public:
22  virtual ~Serializable(){}
23  virtual void pack( QDataStream& stream ) const = 0;
24  virtual void unpack( QDataStream& stream ) = 0;
25 };
26 
27 /* the next two id's are needed to get unpacking working - this cannot be
28  * achieved without a special Id
29  */
30 enum EnumFeatureId {
31  InvalidFeatureId = -1,
32  GeoDataDocumentId = 1,
33  GeoDataFolderId,
34  GeoDataPlacemarkId,
35  GeoDataNetworkLinkId,
36  GeoDataScreenOverlayId,
37  GeoDataGroundOverlayId
38 };
39 
40 enum EnumGeometryId {
41  InvalidGeometryId = -1,
42  GeoDataPointId = 1,
43  GeoDataLineStringId,
44  GeoDataLinearRingId,
45  GeoDataPolygonId,
46  GeoDataMultiGeometryId,
47  GeoDataMultiTrackId,
48  GeoDataModelId,
49  GeoDataTrackId
50 };
51 
52 }
53 
54 #endif
Marble::GeoDataPointId
Definition: Serializable.h:42
Marble::GeoDataMultiTrackId
Definition: Serializable.h:47
Marble::Serializable::unpack
virtual void unpack(QDataStream &stream)=0
QDataStream
Marble::Serializable
Definition: Serializable.h:19
Marble::GeoDataLinearRingId
Definition: Serializable.h:44
Marble::GeoDataFolderId
Definition: Serializable.h:33
Marble::GeoDataDocumentId
Definition: Serializable.h:32
Marble::Serializable::pack
virtual void pack(QDataStream &stream) const =0
Marble::GeoDataMultiGeometryId
Definition: Serializable.h:46
Marble::GeoDataNetworkLinkId
Definition: Serializable.h:35
Marble::GeoDataScreenOverlayId
Definition: Serializable.h:36
Marble::GeoDataModelId
Definition: Serializable.h:48
Marble::GeoDataTrackId
Definition: Serializable.h:49
Marble::Serializable::~Serializable
virtual ~Serializable()
Definition: Serializable.h:22
Marble::EnumFeatureId
EnumFeatureId
Definition: Serializable.h:30
Marble::GeoDataPlacemarkId
Definition: Serializable.h:34
Marble::EnumGeometryId
EnumGeometryId
Definition: Serializable.h:40
Marble::InvalidFeatureId
Definition: Serializable.h:31
Marble::GeoDataGroundOverlayId
Definition: Serializable.h:37
Marble::GeoDataLineStringId
Definition: Serializable.h:43
Marble::GeoDataPolygonId
Definition: Serializable.h:45
Marble::InvalidGeometryId
Definition: Serializable.h:41
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 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