• 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
GeoDataSimpleField.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 2014 Abhinav Gangwar <abhgang@gmail.com>
9 //
10 
11 #ifndef MARBLE_GEODATDASIMPLEFIELD_H
12 #define MARBLE_GEODATDASIMPLEFIELD_H
13 
14 #include "geodata_export.h"
15 #include "GeoDocument.h"
16 
17 class QDataStream;
18 class QString;
19 
20 namespace Marble
21 {
22 
23 class GeoDataSimpleFieldPrivate;
24 
25 class GEODATA_EXPORT GeoDataSimpleField : public GeoNode
26 {
27 public:
28  GeoDataSimpleField();
29  GeoDataSimpleField( const GeoDataSimpleField& other );
30  bool operator==( const GeoDataSimpleField& other ) const;
31  bool operator!=( const GeoDataSimpleField& other ) const;
32  virtual ~GeoDataSimpleField();
33 
34  /*
35  * @brief Enum for different values of type attribute of SimpleField
36  */
37  enum SimpleFieldType {
38  String,
39  Int,
40  UInt,
41  Short,
42  UShort,
43  Float,
44  Double,
45  Bool
46  };
47 
48  /*
49  * @brief Return the value of type attribute of simple field
50  */
51  SimpleFieldType type() const;
52 
53  /*
54  * @brief Sets the value of type attribute
55  * @param type The of type attribute
56  */
57  void setType( const SimpleFieldType& type );
58 
59  /*
60  * @brief Returns the value of name attribute of simple field
61  */
62  QString name() const;
63 
64  /*
65  * @brief Set the value of name attribute of SimpleField
66  * @param value The value to be set as name attribute
67  */
68  void setName( const QString& value );
69 
70  /*
71  * @brief Returns the value of displayField child element of SimpleField tag
72  */
73  QString displayName() const;
74 
75  /*
76  * @brief Set the value for displayName tag
77  * @param displayName The value to be set for displayName tag
78  */
79  void setDisplayName( const QString& displayName );
80 
81  /*
82  * @brief The assignment operator
83  * @param rhs The object to be duplicated
84  */
85  GeoDataSimpleField& operator=( const GeoDataSimpleField& rhs );
86 
87  /*
88  * @brief Provides information for downcasting a GeoNode
89  */
90  virtual const char* nodeType() const;
91 
92  /*
93  * @brief Serialize SimpleField to a stream
94  * @param stream The stream
95  */
96  virtual void pack( QDataStream& stream ) const;
97 
98  /*
99  * @brief Unserialize SimpleField from a stream
100  * @param stream The stream
101  */
102  virtual void unpack( QDataStream& stream );
103 
104 private:
105  GeoDataSimpleFieldPrivate * const d;
106 
107 };
108 
109 }
110 
111 #endif // MARBLE_GEODATDASIMPLEFIELD_H
Marble::GeoDataSimpleField::Float
Definition: GeoDataSimpleField.h:43
Marble::GeoDataSimpleField::String
Definition: GeoDataSimpleField.h:38
Marble::GeoDataSimpleField::UInt
Definition: GeoDataSimpleField.h:40
QDataStream
Marble::GeoNode
A shared base class for all classes that are mapped to a specific tag (ie.
Definition: GeoDocument.h:60
Marble::GeoDataSimpleField
Definition: GeoDataSimpleField.h:25
Marble::GeoDataSimpleField::Int
Definition: GeoDataSimpleField.h:39
Marble::operator==
bool operator==(const DownloadPolicyKey &lhs, const DownloadPolicyKey &rhs)
Definition: DownloadPolicy.h:49
Marble::GeoDataSimpleField::Double
Definition: GeoDataSimpleField.h:44
Marble::GeoDataSimpleField::Short
Definition: GeoDataSimpleField.h:41
Marble::GeoDataSimpleField::SimpleFieldType
SimpleFieldType
Definition: GeoDataSimpleField.h:37
Marble::operator!=
bool operator!=(GeoDataLatLonBox const &lhs, GeoDataLatLonBox const &rhs)
Definition: GeoDataLatLonBox.cpp:59
GeoDocument.h
QString
Marble::GeoDataSimpleField::UShort
Definition: GeoDataSimpleField.h:42
GEODATA_EXPORT
#define GEODATA_EXPORT
Definition: geodata_export.h:22
geodata_export.h
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