Marble

GeoDataSimpleArrayData.h
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2011 Niko Sams <[email protected]>
4 //
5 
6 #ifndef MARBLE_GEODATASIMPLEARRAYDATA_H
7 #define MARBLE_GEODATASIMPLEARRAYDATA_H
8 
9 #include "GeoDataObject.h"
10 
11 class QVariant;
12 
13 namespace Marble {
14 
15 class GeoDataSimpleArrayDataPrivate;
16 
17 /**
18  */
19 class GEODATA_EXPORT GeoDataSimpleArrayData : public GeoDataObject
20 {
21 
22 public:
23  GeoDataSimpleArrayData();
24  GeoDataSimpleArrayData( const GeoDataSimpleArrayData& other );
25  bool operator==( const GeoDataSimpleArrayData &other ) const;
26  bool operator!=( const GeoDataSimpleArrayData &other) const;
27  ~GeoDataSimpleArrayData() override;
28 
29  /**
30  * Returns the number of value in the array
31  */
32  int size() const;
33 
34  /**
35  * Returns the value at index @p index
36  */
37  QVariant valueAt( int index ) const;
38 
39  /**
40  * Returns all values in the array
41  */
42  QList< QVariant > valuesList() const;
43 
44  /**
45  * Append a value to the array
46  */
47  void append( const QVariant& value );
48 
49  const char* nodeType() const override;
50  void pack( QDataStream& stream ) const override;
51  void unpack( QDataStream& stream ) override;
52 
53 private:
54  GeoDataSimpleArrayDataPrivate *d;
55 };
56 
57 }
58 
59 #endif // MARBLE_GEODATASIMPLEARRAYDATA_H
bool operator==(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
bool operator!=(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Oct 2 2023 03:52:08 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.