• 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
GeoDataStyleSelector.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 2007 Murad Tagirov <tmurad@gmail.com>
9 //
10 
11 
12 #include "GeoDataStyleSelector.h"
13 #include <QDataStream>
14 
15 #include "GeoDataTypes.h"
16 
17 namespace Marble
18 {
19 
20 class GeoDataStyleSelectorPrivate
21 {
22 };
23 
24 GeoDataStyleSelector::GeoDataStyleSelector()
25  : d( new GeoDataStyleSelectorPrivate )
26 {
27 }
28 
29 GeoDataStyleSelector::GeoDataStyleSelector( const GeoDataStyleSelector& other )
30  : GeoDataObject( other ), d( new GeoDataStyleSelectorPrivate( *other.d ) )
31 {
32 }
33 
34 GeoDataStyleSelector::~GeoDataStyleSelector()
35 {
36  delete d;
37 }
38 
39 GeoDataStyleSelector& GeoDataStyleSelector::operator=( const GeoDataStyleSelector& other )
40 {
41  GeoDataObject::operator=( other );
42  *d = *other.d;
43  return *this;
44 }
45 
46 bool GeoDataStyleSelector::operator==( const GeoDataStyleSelector &other ) const
47 {
48  return GeoDataObject::equals( other );
49 }
50 
51 bool GeoDataStyleSelector::operator!=( const GeoDataStyleSelector &other ) const
52 {
53  return !this->operator==( other );
54 }
55 
56 const char* GeoDataStyleSelector::nodeType() const
57 {
58  return GeoDataTypes::GeoDataStyleSelectorType;
59 }
60 
61 void GeoDataStyleSelector::pack( QDataStream& stream ) const
62 {
63  GeoDataObject::pack( stream );
64 }
65 
66 void GeoDataStyleSelector::unpack( QDataStream& stream )
67 {
68  GeoDataObject::unpack( stream );
69 }
70 
71 }
QDataStream
Marble::GeoDataObject
A base class for all geodata objects.
Definition: GeoDataObject.h:48
Marble::GeoDataObject::equals
virtual bool equals(const GeoDataObject &other) const
Compares the value of id and targetId of the two objects.
Definition: GeoDataObject.cpp:126
Marble::GeoDataObject::pack
virtual void pack(QDataStream &stream) const
Reimplemented from Serializable.
Definition: GeoDataObject.cpp:114
Marble::GeoDataStyleSelector::unpack
virtual void unpack(QDataStream &stream)
Unserialize the styleselector from a stream.
Definition: GeoDataStyleSelector.cpp:66
Marble::GeoDataStyleSelector::operator=
GeoDataStyleSelector & operator=(const GeoDataStyleSelector &other)
assignment operator
Definition: GeoDataStyleSelector.cpp:39
Marble::GeoDataTypes::GeoDataStyleSelectorType
const char * GeoDataStyleSelectorType
Definition: GeoDataTypes.cpp:76
Marble::GeoDataStyleSelector::pack
virtual void pack(QDataStream &stream) const
Serialize the styleselector to a stream.
Definition: GeoDataStyleSelector.cpp:61
GeoDataStyleSelector.h
Marble::GeoDataStyleSelector::operator!=
bool operator!=(const GeoDataStyleSelector &other) const
Definition: GeoDataStyleSelector.cpp:51
Marble::GeoDataObject::operator=
GeoDataObject & operator=(const GeoDataObject &)
Definition: GeoDataObject.cpp:54
Marble::GeoDataObject::unpack
virtual void unpack(QDataStream &steam)
Reimplemented from Serializable.
Definition: GeoDataObject.cpp:120
Marble::GeoDataStyleSelector::GeoDataStyleSelector
GeoDataStyleSelector()
Definition: GeoDataStyleSelector.cpp:24
GeoDataTypes.h
Marble::GeoDataStyleSelector
a base class for the style classes
Definition: GeoDataStyleSelector.h:40
Marble::GeoDataStyleSelector::~GeoDataStyleSelector
~GeoDataStyleSelector()
Definition: GeoDataStyleSelector.cpp:34
Marble::GeoDataStyleSelector::operator==
bool operator==(const GeoDataStyleSelector &other) const
Definition: GeoDataStyleSelector.cpp:46
Marble::GeoDataStyleSelector::nodeType
virtual const char * nodeType() const
Provides type information for downcasting a GeoNode.
Definition: GeoDataStyleSelector.cpp: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