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() );
93 #pragma clang diagnostic push
94 #pragma clang diagnostic ignored "-Woverloaded-virtual"
106 #pragma clang diagnostic pop
179 bool isHiddenProperty(
int index )
const;
199 int propertyFromIndex(
int index )
const;
346 QString fileName()
const;
352 QString currentFileName()
const;
360 QString errorString()
const;
367 bool saveAs(
const QString &filename );
414 static bool duplicateTable(
const QgsDataSourceUri &uri,
const QString &newTable );
419 static QString extension();
428 static bool exists(
const QgsProject &project );
434 void initTmpFileName();
436 static QString filenameForProject(
const QgsProject &project );
439 static bool tableExists(
const QString &table,
sqlite3 *handler );
440 static bool createTable(
const QString &type,
const QString &table,
sqlite3 *handler, QString &errorMsg );
442 static bool exec(
const QString &sql,
sqlite3 *handler );
443 static QString debugMsg(
const QString &sql,
sqlite3 *handler );
449 QString mTmpFileName;
451 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...