6#include "GeoDataSchema.h"
12#include "GeoDataTypes.h"
13#include "GeoDataSimpleField.h"
18class GeoDataSchemaPrivate
25GeoDataSchema::GeoDataSchema()
26 : d( new GeoDataSchemaPrivate )
31 : d( new GeoDataSchemaPrivate )
33 d->m_simpleField = simplefields;
36GeoDataSchema::GeoDataSchema(
const GeoDataSchema& other )
37 : GeoDataObject( other ),
38 d( new GeoDataSchemaPrivate( *other.d ) )
42GeoDataSchema &GeoDataSchema::operator=(
const GeoDataSchema &other)
44 GeoDataObject::operator=( other );
49bool GeoDataSchema::operator==(
const GeoDataSchema& other)
const
52 d->m_name == other.d->m_name &&
53 d->m_simpleField == other.d->m_simpleField;
56bool GeoDataSchema::operator!=(
const GeoDataSchema& other)
const
61GeoDataSchema::~GeoDataSchema()
66QString GeoDataSchema::schemaName()
const
71void GeoDataSchema::setSchemaName(
const QString& name )
76GeoDataSimpleField& GeoDataSchema::simpleField(
const QString& name )
const
78 return d->m_simpleField[
name ];
81void GeoDataSchema::addSimpleField(
const GeoDataSimpleField &value )
83 d->m_simpleField.
insert( value.name(), value );
88 return d->m_simpleField.values();
91const char* GeoDataSchema::nodeType()
const
93 return GeoDataTypes::GeoDataSchemaType;
96void GeoDataSchema::pack(
QDataStream& stream )
const
98 stream << d->m_simpleField.size();
104 begin.value().pack( stream );
112 for(
int i = 0; i < size; ++i ) {
113 GeoDataSimpleField simpleField;
114 simpleField.unpack( stream );
115 d->m_simpleField.insert( simpleField.name(), simpleField );
const QList< QKeySequence > & begin()
const QList< QKeySequence > & end()
QString name(StandardShortcut id)
bool equals(const QVariant &lhs, const QVariant &rhs)
Binds a QML item to a specific geodetic location in screen coordinates.
QString & insert(qsizetype position, QChar ch)
bool operator==(const QGraphicsApiFilter &reference, const QGraphicsApiFilter &sample)