QGIS/python/core/auto_generated/qgsobjectcustomproperties.sip.in

78 lines
2.3 KiB
Plaintext
Raw Normal View History

2017-05-14 09:48:41 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsobjectcustomproperties.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsObjectCustomProperties
{
2017-05-14 09:48:41 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Simple key-value store (keys = strings, values = variants) that supports loading/saving to/from XML
in \verbatim <customproperties> \endverbatim element.
2017-05-14 09:48:41 +02:00
.. versionadded:: 2.4
%End
%TypeHeaderCode
2017-05-14 09:48:41 +02:00
#include "qgsobjectcustomproperties.h"
%End
public:
2017-09-11 21:43:15 +10:00
QgsObjectCustomProperties();
2017-09-11 21:43:15 +10:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructor for QgsObjectCustomProperties.
2017-09-11 21:43:15 +10:00
%End
QStringList keys() const;
2017-05-14 09:48:41 +02:00
%Docstring
Returns list of stored keys
2017-05-14 09:48:41 +02:00
%End
void setValue( const QString &key, const QVariant &value );
2017-05-14 09:48:41 +02:00
%Docstring
Add an entry to the store. If the entry with the keys exists already, it will be overwritten
%End
QVariant value( const QString &key, const QVariant &defaultValue = QVariant() ) const;
2017-05-14 09:48:41 +02:00
%Docstring
Returns value for the given key. If the key is not stored, default value will be used
2017-05-14 09:48:41 +02:00
%End
void remove( const QString &key );
2017-05-14 09:48:41 +02:00
%Docstring
Remove a key (entry) from the store
%End
void readXml( const QDomNode &parentNode, const QString &keyStartsWith = QString() );
2017-05-14 09:48:41 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Read store contents from XML
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param parentNode: node to read from
:param keyStartsWith: reads only properties starting with the specified string (or all if the string is empty)
2017-05-14 09:48:41 +02:00
%End
void writeXml( QDomNode &parentNode, QDomDocument &doc ) const;
2017-05-14 09:48:41 +02:00
%Docstring
Write store contents to XML
%End
protected:
};
2017-05-14 09:48:41 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsobjectcustomproperties.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/