Search for usage in LXR

Marble::GeoDataExtendedData Class Reference

#include <GeoDataExtendedData.h>

Inheritance diagram for Marble::GeoDataExtendedData:

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
GeoDataExtendedDataoperator= (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

Detailed Description

a class which allows to add custom data to KML Feature.

See also

Definition at line 30 of file GeoDataExtendedData.h.

Member Function Documentation

void Marble::GeoDataExtendedData::addSchemaData ( const GeoDataSchemaData &  schemaData)

Adds a SchemaData schemaData element to schemaDataHash.

Definition at line 120 of file GeoDataExtendedData.cpp.

void Marble::GeoDataExtendedData::addValue ( const GeoDataData &  data)

add a data object to the GeoDataExtendedData with the key

Definition at line 69 of file GeoDataExtendedData.cpp.

QHash< QString, GeoDataData >::const_iterator Marble::GeoDataExtendedData::constBegin ( ) const

return const Begin iterator for QHash

Definition at line 79 of file GeoDataExtendedData.cpp.

QHash< QString, GeoDataData >::const_iterator Marble::GeoDataExtendedData::constEnd ( ) const

return const End iterator for QHash

Definition at line 84 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 99 of file GeoDataExtendedData.cpp.

bool Marble::GeoDataExtendedData::isEmpty ( ) const

return whether QHash is empty or not

Definition at line 94 of file GeoDataExtendedData.cpp.

const char * Marble::GeoDataExtendedData::nodeType ( ) const

Provides type information for downcasting a GeoNode.

Implements Marble::GeoNode.

Definition at line 54 of file GeoDataExtendedData.cpp.

GeoDataExtendedData & Marble::GeoDataExtendedData::operator= ( const GeoDataExtendedData other)

assignment operator

Definition at line 42 of file GeoDataExtendedData.cpp.

void Marble::GeoDataExtendedData::pack ( QDataStream stream) const

Serialize the ExtendedData to a stream.

streamthe stream

Definition at line 137 of file GeoDataExtendedData.cpp.

void Marble::GeoDataExtendedData::removeKey ( const QString key)

Definition at line 74 of file GeoDataExtendedData.cpp.

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.

GeoDataSchemaData & Marble::GeoDataExtendedData::schemaData ( const QString schemaUrl) const

Adds a SchemaData schemaData element to schemaDataHash.

Definition at line 115 of file GeoDataExtendedData.cpp.

QList< GeoDataSchemaData > Marble::GeoDataExtendedData::schemaDataList ( ) const

Dump a vector containing all SchemaData element.

Definition at line 132 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 104 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 109 of file GeoDataExtendedData.cpp.

int Marble::GeoDataExtendedData::size ( ) const

return size of QHash

Definition at line 89 of file GeoDataExtendedData.cpp.

void Marble::GeoDataExtendedData::unpack ( QDataStream stream)

Unserialize the ExtendedData from a stream.

streamthe stream

Definition at line 142 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 64 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 59 of file GeoDataExtendedData.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Oct 26 2021 23:21:27 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.