Marble::GeoDataExtendedData

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
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()

Marble::GeoDataExtendedData::~GeoDataExtendedData ( )
override

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

◆ constBegin()

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

return const Begin iterator for QHash

Definition at line 79 of file GeoDataExtendedData.cpp.

◆ constEnd()

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

return const End iterator for QHash

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

◆ isEmpty()

bool Marble::GeoDataExtendedData::isEmpty ( ) const

return whether QHash is empty or not

Definition at line 94 of file GeoDataExtendedData.cpp.

◆ nodeType()

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

Provides type information for downcasting a GeoNode.

Implements Marble::GeoNode.

Definition at line 54 of file GeoDataExtendedData.cpp.

◆ operator!=()

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

Definition at line 49 of file GeoDataExtendedData.cpp.

◆ operator=()

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

assignment operator

Definition at line 42 of file GeoDataExtendedData.cpp.

◆ operator==()

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

Definition at line 30 of file GeoDataExtendedData.cpp.

◆ pack()

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

Serialize the ExtendedData to a stream.

Parameters
streamthe stream

Definition at line 137 of file GeoDataExtendedData.cpp.

◆ removeKey()

void Marble::GeoDataExtendedData::removeKey ( const QString & key)
Since
0.26.0

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

◆ size()

int Marble::GeoDataExtendedData::size ( ) const

return size of QHash

Definition at line 89 of file GeoDataExtendedData.cpp.

◆ unpack()

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

Unserialize the ExtendedData from a stream.

Parameters
streamthe 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 64 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 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-2024 The KDE developers.
Generated on Fri Jun 14 2024 11:54:17 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.