Marble

GeoDataTimePrimitive.cpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2010 Harshit Jain <hjain.itbhu@gmail.com>
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
18namespace Marble
19{
20
21GeoDataTimePrimitive::GeoDataTimePrimitive()
23 , d(new GeoDataTimePrimitivePrivate)
24{
25}
26
27GeoDataTimePrimitive::GeoDataTimePrimitive(const GeoDataTimePrimitive &other)
28 : GeoDataObject(other)
29 , d(new GeoDataTimePrimitivePrivate(*other.d))
30{
31}
32
33GeoDataTimePrimitive::~GeoDataTimePrimitive()
34{
35 delete d;
36}
37
38GeoDataTimePrimitive &GeoDataTimePrimitive::operator=(const GeoDataTimePrimitive &other)
39{
40 GeoDataObject::operator=(other);
41 *d = *other.d;
42 return *this;
43}
44
46{
47 return GeoDataTypes::GeoDataTimePrimitiveType;
48}
49
51{
52 GeoDataObject::pack(stream);
53}
54
59
60}
A base class for all geodata objects.
void pack(QDataStream &stream) const override
Reimplemented from Serializable.
void unpack(QDataStream &steam) override
Reimplemented from Serializable.
const char * nodeType() const override
Provides type information for downcasting a GeoNode.
void unpack(QDataStream &stream) override
Unserialize the styleselector from a stream.
void pack(QDataStream &stream) const override
Serialize the styleselector to a stream.
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:09 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.