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

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