Marble

GeoDataFolder.cpp
1/*
2 SPDX-FileCopyrightText: 2007 Murad Tagirov <tmurad@gmail.com>
3 SPDX-FileCopyrightText: 2007 Nikolas Zimmermann <zimmermann@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#include "GeoDataFolder.h"
9
10#include "GeoDataTypes.h"
11
12#include "GeoDataContainer_p.h"
13
14namespace Marble
15{
16
17class GeoDataFolderPrivate : public GeoDataContainerPrivate
18{
19};
20
21GeoDataFolder::GeoDataFolder()
22 : GeoDataContainer(new GeoDataFolderPrivate)
23{
24}
25
26GeoDataFolder::GeoDataFolder(const GeoDataFolder &other)
27 : GeoDataContainer(other, new GeoDataFolderPrivate(*other.d_func()))
28{
29}
30
31GeoDataFolder::~GeoDataFolder() = default;
32
33GeoDataFolder &GeoDataFolder::operator=(const GeoDataFolder &other)
34{
35 if (this != &other) {
36 Q_D(GeoDataFolder);
37 *d = *other.d_func();
38 }
39
40 return *this;
41}
42
43bool GeoDataFolder::operator==(const GeoDataFolder &other) const
44{
45 return GeoDataContainer::equals(other);
46}
47
48bool GeoDataFolder::operator!=(const GeoDataFolder &other) const
49{
50 return !this->operator==(other);
51}
52
53const char *GeoDataFolder::nodeType() const
54{
55 return GeoDataTypes::GeoDataFolderType;
56}
57
58GeoDataFeature *GeoDataFolder::clone() const
59{
60 return new GeoDataFolder(*this);
61}
62
63}
A base class for all geodata features.
A container that is used to arrange other GeoDataFeatures.
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 Mon Nov 4 2024 16:37:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.