18 #ifndef QGSFEATURESINK_H
19 #define QGSFEATURESINK_H
21 #include "qgis_core.h"
55 RegeneratePrimaryKey = 1 << 1,
57 Q_DECLARE_FLAGS( SinkFlags, SinkFlag )
78 RollBackOnErrors = 1 << 2,
80 Q_DECLARE_FLAGS( Flags, Flag )
89 virtual bool addFeature(
QgsFeature &feature, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );
96 virtual bool addFeatures(
QgsFeatureList &features, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() ) = 0;
102 virtual bool addFeatures(
QgsFeatureIterator &iterator, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );
122 #endif // QGSFEATURESINK_H