18#ifndef QGSOBJECTCUSTOMPROPERTIES_H
19#define QGSOBJECTCUSTOMPROPERTIES_H
44 QStringList
keys()
const;
58 QVariant
value(
const QString &key,
const QVariant &defaultValue = QVariant() )
const;
63 void remove(
const QString &key );
70 bool contains(
const QString &key )
const;
79 void readXml(
const QDomNode &parentNode,
const QString &keyStartsWith = QString() );
86 void writeXml( QDomNode &parentNode, QDomDocument &doc )
const;
89 QMap<QString, QVariant>
mMap;
QgsObjectCustomProperties()=default
void setValue(const QString &key, const QVariant &value)
Add an entry to the store with the specified key.
QMap< QString, QVariant > mMap
QStringList keys() const
Returns a list of all stored keys.
void writeXml(QDomNode &parentNode, QDomDocument &doc) const
Writes the store contents to an XML node.
void remove(const QString &key)
Removes a key (entry) from the store.
QVariant value(const QString &key, const QVariant &defaultValue=QVariant()) const
Returns the value for the given key.
void readXml(const QDomNode &parentNode, const QString &keyStartsWith=QString())
Read store contents from an XML node.
bool contains(const QString &key) const
Returns true if the properties contains a key with the specified name.