File indexing completed on 2024-05-12 03:50:11

0001 /*
0002     SPDX-FileCopyrightText: 2007 Murad Tagirov <tmurad@gmail.com>
0003     SPDX-FileCopyrightText: 2007 Nikolas Zimmermann <zimmermann@kde.org>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #include "GeoDataFolder.h"
0009 
0010 #include "GeoDataTypes.h"
0011 
0012 #include "GeoDataContainer_p.h"
0013 
0014 namespace Marble
0015 {
0016 
0017 class GeoDataFolderPrivate : public GeoDataContainerPrivate
0018 {
0019 };
0020 
0021 
0022 GeoDataFolder::GeoDataFolder()
0023         : GeoDataContainer( new GeoDataFolderPrivate )
0024 {
0025 }
0026 
0027 GeoDataFolder::GeoDataFolder( const GeoDataFolder& other )
0028     : GeoDataContainer(other, new GeoDataFolderPrivate(*other.d_func()))
0029 {
0030 }
0031 
0032 GeoDataFolder::~GeoDataFolder()
0033 {
0034 }
0035 
0036 GeoDataFolder& GeoDataFolder::operator=(const GeoDataFolder& other)
0037 {
0038     if (this != &other) {
0039         Q_D(GeoDataFolder);
0040         *d = *other.d_func();
0041     }
0042 
0043     return *this;
0044 }
0045 
0046 bool GeoDataFolder::operator==( const GeoDataFolder &other ) const
0047 {
0048     return GeoDataContainer::equals( other );
0049 }
0050 
0051 bool GeoDataFolder::operator!=( const GeoDataFolder &other ) const
0052 {
0053     return !this->operator==( other );
0054 }
0055 
0056 const char* GeoDataFolder::nodeType() const
0057 {
0058     return GeoDataTypes::GeoDataFolderType;
0059 }
0060 
0061 GeoDataFeature * GeoDataFolder::clone() const
0062 {
0063     return new GeoDataFolder(*this);
0064 }
0065 
0066 }