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