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

marble

  • sources
  • kde-4.12
  • 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  void 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  }
42 
43  virtual GeoDataFeaturePrivate* copy()
44  {
45  GeoDataContainerPrivate* copy = new GeoDataContainerPrivate;
46  *copy = *this;
47  return copy;
48  }
49 
50  virtual const char* nodeType() const
51  {
52  return GeoDataTypes::GeoDataContainerType;
53  }
54 
55  virtual EnumFeatureId featureId() const
56  {
57  return GeoDataFolderId;
58  }
59 
60  QVector<GeoDataFeature*> m_vector;
61 };
62 
63 } // namespace Marble
64 
65 #endif
Marble::GeoDataContainerPrivate::GeoDataContainerPrivate
GeoDataContainerPrivate()
Definition: GeoDataContainer_p.h:24
Marble::GeoDataContainerPrivate::nodeType
virtual const char * nodeType() const
Definition: GeoDataContainer_p.h:50
Marble::GeoDataContainerPrivate::m_vector
QVector< GeoDataFeature * > m_vector
Definition: GeoDataContainer_p.h:60
Marble::GeoDataContainerPrivate::~GeoDataContainerPrivate
~GeoDataContainerPrivate()
Definition: GeoDataContainer_p.h:28
Marble::GeoDataFolderId
Definition: Serializable.h:33
Marble::GeoDataFeaturePrivate
Definition: GeoDataFeature_p.h:30
GeoDataFeature_p.h
Marble::GeoDataTypes::GeoDataContainerType
const char * GeoDataContainerType
Definition: GeoDataTypes.cpp:32
Marble::EnumFeatureId
EnumFeatureId
Definition: Serializable.h:30
Marble::GeoDataContainerPrivate
Definition: GeoDataContainer_p.h:21
Marble::GeoDataContainerPrivate::copy
virtual GeoDataFeaturePrivate * copy()
Definition: GeoDataContainer_p.h:43
Marble::GeoDataFeature
A base class for all geodata features.
Definition: GeoDataFeature.h:55
Marble::GeoDataFeaturePrivate::operator=
void operator=(const GeoDataFeaturePrivate &other)
Definition: GeoDataFeature_p.h:79
GeoDataTypes.h
Marble::GeoDataContainerPrivate::operator=
void operator=(const GeoDataContainerPrivate &other)
Definition: GeoDataContainer_p.h:33
Marble::GeoDataContainerPrivate::featureId
virtual EnumFeatureId featureId() const
Definition: GeoDataContainer_p.h:55
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:49 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
  • kstars
  • libkdeedu
  •   keduvocdocument
  • 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