18#ifndef QGSOBJECTCUSTOMPROPERTIES_H
19#define QGSOBJECTCUSTOMPROPERTIES_H
46 QStringList keys()
const;
53 void setValue(
const QString &key,
const QVariant &value );
60 QVariant value(
const QString &key,
const QVariant &defaultValue = QVariant() )
const;
65 void remove(
const QString &key );
72 bool contains(
const QString &key )
const;
81 void readXml(
const QDomNode &parentNode,
const QString &keyStartsWith = QString() );
88 void writeXml( QDomNode &parentNode, QDomDocument &doc )
const;
91 QMap<QString, QVariant>
mMap;
Simple key-value store (keys = strings, values = variants) that supports loading/saving to/from XML i...
QgsObjectCustomProperties()=default
Constructor for QgsObjectCustomProperties.
QMap< QString, QVariant > mMap