18 #ifndef QGSAUXILIARYSTORAGE_H
19 #define QGSAUXILIARYSTORAGE_H
21 #include "qgis_core.h"
85 SIP_PYOBJECT __repr__();
87 QString
str = QStringLiteral(
"<QgsAuxiliaryLayer: '%1'>" ).arg( sipCpp->name() );
88 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
171 bool isHiddenProperty(
int index )
const;
191 int propertyFromIndex(
int index )
const;
335 QString fileName()
const;
341 QString currentFileName()
const;
349 QString errorString()
const;
356 bool saveAs(
const QString &filename );
403 static bool duplicateTable(
const QgsDataSourceUri &uri,
const QString &newTable );
408 static QString extension();
417 static bool exists(
const QgsProject &project );
423 void initTmpFileName();
425 static QString filenameForProject(
const QgsProject &project );
428 static bool tableExists(
const QString &table,
sqlite3 *handler );
429 static bool createTable(
const QString &type,
const QString &table,
sqlite3 *handler, QString &errorMsg );
431 static bool exec(
const QString &sql,
sqlite3 *handler );
432 static QString debugMsg(
const QString &sql,
sqlite3 *handler );
438 QString mTmpFileName;
440 mutable QString mErrorString;
Class allowing to manage the auxiliary storage for a vector layer.
QgsAuxiliaryLayer & operator=(QgsAuxiliaryLayer const &rhs)=delete
QgsAuxiliaryLayer(const QString &pkField, const QString &filename, const QString &table, QgsVectorLayer *vlayer)
Constructor.
QgsAuxiliaryLayer(const QgsAuxiliaryLayer &rhs)=delete
Copy constructor deactivated.
Class providing some utility methods to manage auxiliary storage.
Property
Data definable properties.
Class for storing the component parts of a RDBMS data source URI (e.g.
Property
Data definable properties.
Encapsulate a field in an attribute table or data source.
Container of fields for a vector layer.
Property
Data definable properties.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
Definition for a property.
Defines left outer join from our vector layer to some other vector layer.
Represents a vector layer which manages a vector based data sets.
virtual bool deleteAttribute(int attr)
Deletes an attribute field (but does not commit it).
QgsVectorLayer * clone() const override
Returns a new instance equivalent to this one.
Unique pointer for spatialite databases, which automatically closes the database when the pointer goe...