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

Marble::GeoDataExtendedData::~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()

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

return const Begin iterator for QHash

Definition at line 78 of file GeoDataExtendedData.cpp.

◆ constEnd()

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

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

const char * Marble::GeoDataExtendedData::nodeType ( ) const
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()

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

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 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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:02:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.