Marble::GeoDataExtendedData
#include <GeoDataExtendedData.h>
Public Member Functions | |
GeoDataExtendedData (const GeoDataExtendedData &other) | |
void | addSchemaData (const GeoDataSchemaData &schemaData) |
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 |
const char * | nodeType () const override |
bool | operator!= (const GeoDataExtendedData &other) const |
GeoDataExtendedData & | operator= (const GeoDataExtendedData &other) |
bool | operator== (const GeoDataExtendedData &other) const |
void | pack (QDataStream &stream) const override |
void | removeKey (const QString &key) |
void | removeSchemaData (const QString &schemaUrl) |
GeoDataSchemaData & | schemaData (const QString &schemaUrl) const |
QList< GeoDataSchemaData > | schemaDataList () const |
void | setSimpleArrayData (const QString &key, GeoDataSimpleArrayData *values) |
GeoDataSimpleArrayData * | simpleArrayData (const QString &key) const |
int | size () const |
void | unpack (QDataStream &stream) override |
GeoDataData | value (const QString &key) const |
GeoDataData & | valueRef (const QString &key) const |
Public Member Functions inherited from Marble::GeoNode |
Detailed Description
a class which allows to add custom data to KML Feature.
- See also
- GeoDataData
Definition at line 30 of file GeoDataExtendedData.h.
Constructor & Destructor Documentation
◆ GeoDataExtendedData() [1/2]
Marble::GeoDataExtendedData::GeoDataExtendedData | ( | ) |
Definition at line 16 of file GeoDataExtendedData.cpp.
◆ GeoDataExtendedData() [2/2]
Marble::GeoDataExtendedData::GeoDataExtendedData | ( | const GeoDataExtendedData & | other | ) |
Definition at line 23 of file GeoDataExtendedData.cpp.
◆ ~GeoDataExtendedData()
|
override |
Definition at line 35 of file GeoDataExtendedData.cpp.
Member Function Documentation
◆ addSchemaData()
void Marble::GeoDataExtendedData::addSchemaData | ( | const GeoDataSchemaData & | schemaData | ) |
Adds a SchemaData schemaData
element to schemaDataHash.
Definition at line 120 of file GeoDataExtendedData.cpp.
◆ addValue()
void Marble::GeoDataExtendedData::addValue | ( | const GeoDataData & | data | ) |
add a data object to the GeoDataExtendedData with the key
Definition at line 68 of file GeoDataExtendedData.cpp.
◆ constBegin()
return const Begin iterator for QHash
Definition at line 78 of file GeoDataExtendedData.cpp.
◆ constEnd()
return const End iterator for QHash
Definition at line 83 of file GeoDataExtendedData.cpp.
◆ contains()
bool Marble::GeoDataExtendedData::contains | ( | const QString & | key | ) | const |
Returns true if there exists a value for the given key.
Definition at line 98 of file GeoDataExtendedData.cpp.
◆ isEmpty()
bool Marble::GeoDataExtendedData::isEmpty | ( | ) | const |
return whether QHash is empty or not
Definition at line 93 of file GeoDataExtendedData.cpp.
◆ nodeType()
|
overridevirtual |
Provides type information for downcasting a GeoNode.
Implements Marble::GeoNode.
Definition at line 53 of file GeoDataExtendedData.cpp.
◆ operator!=()
bool Marble::GeoDataExtendedData::operator!= | ( | const GeoDataExtendedData & | other | ) | const |
Definition at line 48 of file GeoDataExtendedData.cpp.
◆ operator=()
GeoDataExtendedData & Marble::GeoDataExtendedData::operator= | ( | const GeoDataExtendedData & | other | ) |
assignment operator
Definition at line 41 of file GeoDataExtendedData.cpp.
◆ operator==()
bool Marble::GeoDataExtendedData::operator== | ( | const GeoDataExtendedData & | other | ) | const |
Definition at line 30 of file GeoDataExtendedData.cpp.
◆ pack()
|
override |
Serialize the ExtendedData to a stream.
- Parameters
-
stream the stream
Definition at line 137 of file GeoDataExtendedData.cpp.
◆ removeKey()
void Marble::GeoDataExtendedData::removeKey | ( | const QString & | key | ) |
- Since
- 0.26.0
Definition at line 73 of file GeoDataExtendedData.cpp.
◆ removeSchemaData()
void Marble::GeoDataExtendedData::removeSchemaData | ( | const QString & | schemaUrl | ) |
Removes a SchemaData element with schema url schemaUrl
from schemaDataHash.
Definition at line 126 of file GeoDataExtendedData.cpp.
◆ schemaData()
GeoDataSchemaData & Marble::GeoDataExtendedData::schemaData | ( | const QString & | schemaUrl | ) | const |
Adds a SchemaData schemaData
element to schemaDataHash.
Definition at line 115 of file GeoDataExtendedData.cpp.
◆ schemaDataList()
QList< GeoDataSchemaData > Marble::GeoDataExtendedData::schemaDataList | ( | ) | const |
Dump a vector containing all SchemaData element.
Definition at line 132 of file GeoDataExtendedData.cpp.
◆ setSimpleArrayData()
void Marble::GeoDataExtendedData::setSimpleArrayData | ( | const QString & | key, |
GeoDataSimpleArrayData * | values ) |
set SimpleArrayData for given key
ExtendedData takes ownership of SimpleArrayData
Definition at line 103 of file GeoDataExtendedData.cpp.
◆ simpleArrayData()
GeoDataSimpleArrayData * Marble::GeoDataExtendedData::simpleArrayData | ( | const QString & | key | ) | const |
return SimpleArrayData for given key
, 0 pointer if none is set
Definition at line 108 of file GeoDataExtendedData.cpp.
◆ size()
int Marble::GeoDataExtendedData::size | ( | ) | const |
return size of QHash
Definition at line 88 of file GeoDataExtendedData.cpp.
◆ unpack()
|
override |
Unserialize the ExtendedData from a stream.
- Parameters
-
stream the stream
Definition at line 142 of file GeoDataExtendedData.cpp.
◆ value()
GeoDataData Marble::GeoDataExtendedData::value | ( | const QString & | key | ) | const |
return the value of GeoDataExtendedData associated with the given key
Definition at line 63 of file GeoDataExtendedData.cpp.
◆ valueRef()
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 58 of file GeoDataExtendedData.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.