Marble

GeoDataCreate.cpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2014 Sanjiban Bairagya <sanjiban22393@gmail.com>
4//
5
6#include "GeoDataCreate.h"
7
8#include "GeoDataContainer_p.h"
9#include "GeoDataTypes.h"
10
11namespace Marble
12{
13
14class GeoDataCreatePrivate : public GeoDataContainerPrivate
15{
16};
17
18GeoDataCreate::GeoDataCreate()
19 : GeoDataContainer(new GeoDataCreatePrivate)
20{
21}
22
23GeoDataCreate::GeoDataCreate(const GeoDataCreate &other)
24 : GeoDataContainer(other, new GeoDataCreatePrivate(*other.d_func()))
25{
26}
27
28GeoDataCreate &GeoDataCreate::operator=(const GeoDataCreate &other)
29{
30 if (this != &other) {
31 Q_D(GeoDataCreate);
32 *d = *other.d_func();
33 }
34
35 return *this;
36}
37
38bool GeoDataCreate::operator==(const GeoDataCreate &other) const
39{
40 return GeoDataContainer::equals(other);
41}
42
43bool GeoDataCreate::operator!=(const GeoDataCreate &other) const
44{
45 return !this->operator==(other);
46}
47
48GeoDataCreate::~GeoDataCreate() = default;
49
50GeoDataFeature *GeoDataCreate::clone() const
51{
52 return new GeoDataCreate(*this);
53}
54
55const char *GeoDataCreate::nodeType() const
56{
57 return GeoDataTypes::GeoDataCreateType;
58}
59
60}
KIOCORE_EXPORT bool operator==(const UDSEntry &entry, const UDSEntry &other)
Binds a QML item to a specific geodetic location in screen coordinates.
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:52:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.