mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
21 lines
762 B
Plaintext
21 lines
762 B
Plaintext
|
class QgsVectorLayerEditPassthrough : QgsVectorLayerEditBuffer
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
|
#include <qgsvectorlayereditpassthrough.h>
|
||
|
%End
|
||
|
public:
|
||
|
QgsVectorLayerEditPassthrough( QgsVectorLayer* layer );
|
||
|
bool isModified() const;
|
||
|
bool addFeature( QgsFeature& f );
|
||
|
bool addFeatures( QgsFeatureList& features );
|
||
|
bool deleteFeature( QgsFeatureId fid );
|
||
|
bool deleteFeatures( QgsFeatureIds fids );
|
||
|
bool changeGeometry( QgsFeatureId fid, QgsGeometry* geom );
|
||
|
bool changeAttributeValue( QgsFeatureId fid, int field, const QVariant &newValue, const QVariant &oldValue = QVariant() );
|
||
|
bool addAttribute( const QgsField &field );
|
||
|
bool deleteAttribute( int attr );
|
||
|
bool commitChanges( QStringList& commitErrors );
|
||
|
void rollBack();
|
||
|
|
||
|
};
|