Marble

GeoDataTimePrimitive.cpp
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2010 Harshit Jain <[email protected]>
4 //
5 
6 // Own
7 #include "GeoDataTimePrimitive.h"
8 
9 // Private
10 #include "GeoDataTimePrimitive_p.h"
11 
12 // Qt
13 #include <QDataStream>
14 
15 // GeoData
16 #include "GeoDataTypes.h"
17 
18 namespace Marble
19 {
20 
21 GeoDataTimePrimitive::GeoDataTimePrimitive()
22  : GeoDataObject(), d( new GeoDataTimePrimitivePrivate )
23 {
24 }
25 
26 GeoDataTimePrimitive::GeoDataTimePrimitive( const GeoDataTimePrimitive& other )
27  : GeoDataObject( other ), d( new GeoDataTimePrimitivePrivate( *other.d ) )
28 {
29 }
30 
31 GeoDataTimePrimitive::~GeoDataTimePrimitive()
32 {
33  delete d;
34 }
35 
36 GeoDataTimePrimitive& GeoDataTimePrimitive::operator=( const GeoDataTimePrimitive& other )
37 {
38  GeoDataObject::operator=( other );
39  *d = *other.d;
40  return *this;
41 }
42 
43 const char* GeoDataTimePrimitive::nodeType() const
44 {
45  return GeoDataTypes::GeoDataTimePrimitiveType;
46 }
47 
49 {
50  GeoDataObject::pack( stream );
51 }
52 
54 {
55  GeoDataObject::unpack( stream );
56 }
57 
58 }
const char * nodeType() const override
Provides type information for downcasting a GeoNode.
void pack(QDataStream &stream) const override
Reimplemented from Serializable.
void pack(QDataStream &stream) const override
Serialize the styleselector to a stream.
Binds a QML item to a specific geodetic location in screen coordinates.
void unpack(QDataStream &stream) override
Unserialize the styleselector from a stream.
void unpack(QDataStream &steam) override
Reimplemented from Serializable.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Oct 4 2023 04:09:41 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.