Marble

GeoDataFolder.cpp
1 /*
2  SPDX-FileCopyrightText: 2007 Murad Tagirov <[email protected]>
3  SPDX-FileCopyrightText: 2007 Nikolas Zimmermann <[email protected]>
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 
14 namespace Marble
15 {
16 
17 class GeoDataFolderPrivate : public GeoDataContainerPrivate
18 {
19 };
20 
21 
22 GeoDataFolder::GeoDataFolder()
23  : GeoDataContainer( new GeoDataFolderPrivate )
24 {
25 }
26 
27 GeoDataFolder::GeoDataFolder( const GeoDataFolder& other )
28  : GeoDataContainer(other, new GeoDataFolderPrivate(*other.d_func()))
29 {
30 }
31 
32 GeoDataFolder::~GeoDataFolder()
33 {
34 }
35 
36 GeoDataFolder& GeoDataFolder::operator=(const GeoDataFolder& other)
37 {
38  if (this != &other) {
39  Q_D(GeoDataFolder);
40  *d = *other.d_func();
41  }
42 
43  return *this;
44 }
45 
46 bool GeoDataFolder::operator==( const GeoDataFolder &other ) const
47 {
48  return GeoDataContainer::equals( other );
49 }
50 
51 bool GeoDataFolder::operator!=( const GeoDataFolder &other ) const
52 {
53  return !this->operator==( other );
54 }
55 
56 const char* GeoDataFolder::nodeType() const
57 {
58  return GeoDataTypes::GeoDataFolderType;
59 }
60 
62 {
63  return new GeoDataFolder(*this);
64 }
65 
66 }
A container that is used to arrange other GeoDataFeatures.
Definition: GeoDataFolder.h:33
A base class for all geodata features.
Binds a QML item to a specific geodetic location in screen coordinates.
const char * nodeType() const override
Provides type information for downcasting a GeoNode.
GeoDataFeature * clone() const override
Duplicate into another equal instance.
Q_D(Todo)
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.