Marble

GeoDataTimePrimitive.cpp
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 <[email protected]>
9 //
10 
11 // Own
12 #include "GeoDataTimePrimitive.h"
13 
14 // Private
15 #include "GeoDataTimePrimitive_p.h"
16 
17 // Qt
18 #include <QDataStream>
19 
20 // GeoData
21 #include "GeoDataTypes.h"
22 
23 namespace Marble
24 {
25 
26 GeoDataTimePrimitive::GeoDataTimePrimitive()
27  : GeoDataObject(), d( new GeoDataTimePrimitivePrivate )
28 {
29 }
30 
31 GeoDataTimePrimitive::GeoDataTimePrimitive( const GeoDataTimePrimitive& other )
32  : GeoDataObject( other ), d( new GeoDataTimePrimitivePrivate( *other.d ) )
33 {
34 }
35 
36 GeoDataTimePrimitive::~GeoDataTimePrimitive()
37 {
38  delete d;
39 }
40 
41 GeoDataTimePrimitive& GeoDataTimePrimitive::operator=( const GeoDataTimePrimitive& other )
42 {
43  GeoDataObject::operator=( other );
44  *d = *other.d;
45  return *this;
46 }
47 
48 const char* GeoDataTimePrimitive::nodeType() const
49 {
50  return GeoDataTypes::GeoDataTimePrimitiveType;
51 }
52 
54 {
55  GeoDataObject::pack( stream );
56 }
57 
59 {
60  GeoDataObject::unpack( stream );
61 }
62 
63 }
void unpack(QDataStream &steam) override
Reimplemented from Serializable.
Binds a QML item to a specific geodetic location in screen coordinates.
void pack(QDataStream &stream) const override
Reimplemented from Serializable.
const char * nodeType() const override
Provides type information for downcasting a GeoNode.
void pack(QDataStream &stream) const override
Serialize the styleselector to a stream.
void unpack(QDataStream &stream) override
Unserialize the styleselector from a stream.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Jun 4 2020 22:32:24 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.