• 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
GeoDataContainer_p.h
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 2009 Patrick Spendrin <ps_ml@gmx.de>
9 //
10 
11 #ifndef MARBLE_GEODATACONTAINERPRIVATE_H
12 #define MARBLE_GEODATACONTAINERPRIVATE_H
13 
14 #include "GeoDataFeature_p.h"
15 
16 #include "GeoDataTypes.h"
17 
18 namespace Marble
19 {
20 
21 class GeoDataContainerPrivate : public GeoDataFeaturePrivate
22 {
23  public:
24  GeoDataContainerPrivate()
25  {
26  }
27 
28  ~GeoDataContainerPrivate()
29  {
30  qDeleteAll( m_vector );
31  }
32 
33  GeoDataContainerPrivate& operator=( const GeoDataContainerPrivate &other)
34  {
35  GeoDataFeaturePrivate::operator=( other );
36  qDeleteAll( m_vector );
37  foreach( GeoDataFeature *feature, other.m_vector )
38  {
39  m_vector.append( new GeoDataFeature( *feature ) );
40  }
41  return *this;
42  }
43 
44  virtual GeoDataFeaturePrivate* copy()
45  {
46  GeoDataContainerPrivate* copy = new GeoDataContainerPrivate;
47  *copy = *this;
48  return copy;
49  }
50 
51  virtual const char* nodeType() const
52  {
53  return GeoDataTypes::GeoDataContainerType;
54  }
55 
56  virtual EnumFeatureId featureId() const
57  {
58  return GeoDataFolderId;
59  }
60 
61  QVector<GeoDataFeature*> m_vector;
62 };
63 
64 } // namespace Marble
65 
66 #endif
Marble::GeoDataContainerPrivate::GeoDataContainerPrivate
GeoDataContainerPrivate()
Definition: GeoDataContainer_p.h:24
Marble::GeoDataContainerPrivate::nodeType
virtual const char * nodeType() const
Definition: GeoDataContainer_p.h:51
Marble::GeoDataContainerPrivate::m_vector
QVector< GeoDataFeature * > m_vector
Definition: GeoDataContainer_p.h:61
Marble::GeoDataContainerPrivate::~GeoDataContainerPrivate
~GeoDataContainerPrivate()
Definition: GeoDataContainer_p.h:28
Marble::GeoDataFolderId
Definition: Serializable.h:33
Marble::GeoDataFeaturePrivate
Definition: GeoDataFeature_p.h:31
GeoDataFeature_p.h
Marble::GeoDataTypes::GeoDataContainerType
const char * GeoDataContainerType
Definition: GeoDataTypes.cpp:34
Marble::EnumFeatureId
EnumFeatureId
Definition: Serializable.h:30
Marble::GeoDataContainerPrivate
Definition: GeoDataContainer_p.h:21
Marble::GeoDataContainerPrivate::copy
virtual GeoDataFeaturePrivate * copy()
Definition: GeoDataContainer_p.h:44
Marble::GeoDataFeaturePrivate::operator=
GeoDataFeaturePrivate & operator=(const GeoDataFeaturePrivate &other)
Definition: GeoDataFeature_p.h:82
QVector
Marble::GeoDataFeature
A base class for all geodata features.
Definition: GeoDataFeature.h:57
GeoDataTypes.h
Marble::GeoDataContainerPrivate::operator=
GeoDataContainerPrivate & operator=(const GeoDataContainerPrivate &other)
Definition: GeoDataContainer_p.h:33
Marble::GeoDataContainerPrivate::featureId
virtual EnumFeatureId featureId() const
Definition: GeoDataContainer_p.h:56
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