• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • lib
  • marble
  • geodata
  • data
GeoDataCreate.cpp
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2014 Sanjiban Bairagya <sanjiban22393@gmail.com>
9 //
10 
11 #include "GeoDataCreate.h"
12 #include "GeoDataTypes.h"
13 
14 namespace Marble
15 {
16 
17 class GeoDataCreatePrivate
18 {
19 public:
20  GeoDataCreatePrivate();
21 };
22 
23 GeoDataCreatePrivate::GeoDataCreatePrivate()
24 {
25 }
26 
27 GeoDataCreate::GeoDataCreate() :
28  d( new GeoDataCreatePrivate )
29 {
30 }
31 
32 GeoDataCreate::GeoDataCreate( const Marble::GeoDataCreate &other ) :
33  GeoDataContainer(), d( new GeoDataCreatePrivate( *other.d ) )
34 {
35 }
36 
37 GeoDataCreate &GeoDataCreate::operator=( const GeoDataCreate &other )
38 {
39  GeoDataContainer::operator =( other );
40  *d = *other.d;
41  return *this;
42 }
43 
44 bool GeoDataCreate::operator==( const GeoDataCreate &other ) const
45 {
46  if ( !GeoDataContainer::equals(other) ){
47  return false;
48  }
49  return true;
50 }
51 
52 bool GeoDataCreate::operator!=( const GeoDataCreate &other ) const
53 {
54  return !this->operator==( other );
55 }
56 
57 GeoDataCreate::~GeoDataCreate()
58 {
59  delete d;
60 }
61 
62 const char *GeoDataCreate::nodeType() const
63 {
64  return GeoDataTypes::GeoDataCreateType;
65 }
66 
67 }
Marble::GeoDataCreate::~GeoDataCreate
~GeoDataCreate()
Definition: GeoDataCreate.cpp:57
Marble::GeoDataCreate::GeoDataCreate
GeoDataCreate()
Definition: GeoDataCreate.cpp:27
Marble::GeoDataContainer
A base class that can hold GeoDataFeatures.
Definition: GeoDataContainer.h:47
Marble::GeoDataTypes::GeoDataCreateType
const char * GeoDataCreateType
Definition: GeoDataTypes.cpp:35
GeoDataCreate.h
Marble::GeoDataCreate::nodeType
virtual const char * nodeType() const
Provides type information for downcasting a GeoNode.
Definition: GeoDataCreate.cpp:62
Marble::GeoDataCreate::operator=
GeoDataCreate & operator=(const GeoDataCreate &other)
Definition: GeoDataCreate.cpp:37
Marble::GeoDataCreate
Definition: GeoDataCreate.h:25
Marble::GeoDataCreate::operator!=
bool operator!=(const GeoDataCreate &other) const
Definition: GeoDataCreate.cpp:52
GeoDataTypes.h
Marble::GeoDataContainer::equals
bool equals(const GeoDataContainer &other) const
Definition: GeoDataContainer.cpp:66
Marble::GeoDataCreate::operator==
bool operator==(const GeoDataCreate &other) const
Definition: GeoDataCreate.cpp:44
Marble::GeoDataFeature::operator=
GeoDataFeature & operator=(const GeoDataFeature &other)
Definition: GeoDataFeature.cpp:80
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal