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 "GeoDataCreate.h" 0007 0008 #include "GeoDataContainer_p.h" 0009 #include "GeoDataTypes.h" 0010 0011 namespace Marble 0012 { 0013 0014 class GeoDataCreatePrivate : public GeoDataContainerPrivate 0015 { 0016 }; 0017 0018 0019 GeoDataCreate::GeoDataCreate() 0020 : GeoDataContainer(new GeoDataCreatePrivate) 0021 { 0022 } 0023 0024 GeoDataCreate::GeoDataCreate(const GeoDataCreate &other) 0025 : GeoDataContainer(other, new GeoDataCreatePrivate(*other.d_func())) 0026 { 0027 } 0028 0029 GeoDataCreate &GeoDataCreate::operator=( const GeoDataCreate &other ) 0030 { 0031 if (this != &other) { 0032 Q_D(GeoDataCreate); 0033 *d = *other.d_func(); 0034 } 0035 0036 return *this; 0037 } 0038 0039 bool GeoDataCreate::operator==( const GeoDataCreate &other ) const 0040 { 0041 return GeoDataContainer::equals(other); 0042 } 0043 0044 bool GeoDataCreate::operator!=( const GeoDataCreate &other ) const 0045 { 0046 return !this->operator==( other ); 0047 } 0048 0049 GeoDataCreate::~GeoDataCreate() 0050 { 0051 } 0052 0053 GeoDataFeature * GeoDataCreate::clone() const 0054 { 0055 return new GeoDataCreate(*this); 0056 } 0057 0058 const char *GeoDataCreate::nodeType() const 0059 { 0060 return GeoDataTypes::GeoDataCreateType; 0061 } 0062 0063 }