18 #ifndef QGSFEATURESINK_H
19 #define QGSFEATURESINK_H
21 #include "qgis_core.h"
55 RegeneratePrimaryKey = 1 << 1,
57 Q_DECLARE_FLAGS( SinkFlags, SinkFlag )
72 Q_DECLARE_FLAGS( Flags, Flag )
81 virtual bool addFeature(
QgsFeature &feature, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );
88 virtual bool addFeatures(
QgsFeatureList &features, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() ) = 0;
94 virtual bool addFeatures(
QgsFeatureIterator &iterator, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );
103 Q_DECLARE_OPERATORS_FOR_FLAGS( QgsFeatureSink::Flags )
107 #endif // QGSFEATURESINK_H