marble
#include <GeoDataExtendedData.h>

Public Member Functions | |
GeoDataExtendedData () | |
GeoDataExtendedData (const GeoDataExtendedData &other) | |
virtual | ~GeoDataExtendedData () |
void | addValue (const GeoDataData &data) |
QHash< QString, GeoDataData > ::const_iterator | constBegin () const |
QHash< QString, GeoDataData > ::const_iterator | constEnd () const |
bool | contains (const QString &key) const |
bool | isEmpty () const |
virtual const char * | nodeType () const |
GeoDataExtendedData & | operator= (const GeoDataExtendedData &other) |
virtual void | pack (QDataStream &stream) const |
void | setSimpleArrayData (const QString &key, GeoDataSimpleArrayData *values) |
GeoDataSimpleArrayData * | simpleArrayData (const QString &key) const |
int | size () const |
virtual void | unpack (QDataStream &stream) |
GeoDataData | value (const QString &key) const |
GeoDataData & | valueRef (const QString &key) const |
![]() | |
GeoDataObject () | |
GeoDataObject (const GeoDataObject &) | |
virtual | ~GeoDataObject () |
int | id () const |
GeoDataObject & | operator= (const GeoDataObject &) |
virtual GeoDataObject * | parent () const |
QString | resolvePath (const QString &relativePath) const |
void | setId (int value) |
virtual void | setParent (GeoDataObject *parent) |
void | setTargetId (int value) |
int | targetId () const |
![]() | |
GeoNode () | |
virtual | ~GeoNode () |
![]() | |
virtual | ~Serializable () |
Detailed Description
a class which allows to add custom data to KML Feature.
Definition at line 35 of file GeoDataExtendedData.h.
Constructor & Destructor Documentation
Marble::GeoDataExtendedData::GeoDataExtendedData | ( | ) |
Definition at line 21 of file GeoDataExtendedData.cpp.
Marble::GeoDataExtendedData::GeoDataExtendedData | ( | const GeoDataExtendedData & | other | ) |
Definition at line 26 of file GeoDataExtendedData.cpp.
|
virtual |
Definition at line 31 of file GeoDataExtendedData.cpp.
Member Function Documentation
void Marble::GeoDataExtendedData::addValue | ( | const GeoDataData & | data | ) |
add a data object to the GeoDataExtendedData with the key
Definition at line 59 of file GeoDataExtendedData.cpp.
QHash< QString, GeoDataData >::const_iterator Marble::GeoDataExtendedData::constBegin | ( | ) | const |
return const Begin iterator for QHash
Definition at line 64 of file GeoDataExtendedData.cpp.
QHash< QString, GeoDataData >::const_iterator Marble::GeoDataExtendedData::constEnd | ( | ) | const |
return const End iterator for QHash
Definition at line 69 of file GeoDataExtendedData.cpp.
bool Marble::GeoDataExtendedData::contains | ( | const QString & | key | ) | const |
Returns true if there exists a value for the given key.
Definition at line 84 of file GeoDataExtendedData.cpp.
bool Marble::GeoDataExtendedData::isEmpty | ( | ) | const |
return wthethe QHash is empty or not
Definition at line 79 of file GeoDataExtendedData.cpp.
|
virtual |
Provides type information for downcasting a GeoNode.
Implements Marble::GeoDataObject.
Definition at line 44 of file GeoDataExtendedData.cpp.
GeoDataExtendedData & Marble::GeoDataExtendedData::operator= | ( | const GeoDataExtendedData & | other | ) |
assignment operator
Definition at line 37 of file GeoDataExtendedData.cpp.
|
virtual |
Serialize the ExtendedData to a stream.
- Parameters
-
stream the stream
Reimplemented from Marble::GeoDataObject.
Definition at line 100 of file GeoDataExtendedData.cpp.
void Marble::GeoDataExtendedData::setSimpleArrayData | ( | const QString & | key, |
GeoDataSimpleArrayData * | values | ||
) |
set SimpleArrayData for given key
ExtendedData takes ownership of SimpleArrayData
Definition at line 89 of file GeoDataExtendedData.cpp.
GeoDataSimpleArrayData * Marble::GeoDataExtendedData::simpleArrayData | ( | const QString & | key | ) | const |
return SimpleArrayData for given key
, 0 pointer if none is set
Definition at line 94 of file GeoDataExtendedData.cpp.
int Marble::GeoDataExtendedData::size | ( | ) | const |
return size of QHash
Definition at line 74 of file GeoDataExtendedData.cpp.
|
virtual |
Unserialize the ExtendedData from a stream.
- Parameters
-
stream the stream
Reimplemented from Marble::GeoDataObject.
Definition at line 105 of file GeoDataExtendedData.cpp.
GeoDataData Marble::GeoDataExtendedData::value | ( | const QString & | key | ) | const |
return the value of GeoDataExtendedData associated with the given key
Definition at line 54 of file GeoDataExtendedData.cpp.
GeoDataData & Marble::GeoDataExtendedData::valueRef | ( | const QString & | key | ) | const |
return value of GeoDataExtendedData object associated with the given key
as a modifiable reference
Definition at line 49 of file GeoDataExtendedData.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:55 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.