QGIS API Documentation
3.2.0-Bonn (bc43194)
|
An interface for objects which accept features via addFeature(s) methods. More...
#include <qgsfeaturesink.h>
Public Types | |
enum | Flag { FastInsert = 1 << 1 } |
Flags controlling how features are added to a sink. More... | |
Public Member Functions | |
virtual | ~QgsFeatureSink ()=default |
virtual bool | addFeature (QgsFeature &feature, QgsFeatureSink::Flags flags=nullptr) |
Adds a single feature to the sink. More... | |
virtual bool | addFeatures (QgsFeatureList &features, QgsFeatureSink::Flags flags=nullptr)=0 |
Adds a list of features to the sink. More... | |
virtual bool | addFeatures (QgsFeatureIterator &iterator, QgsFeatureSink::Flags flags=nullptr) |
Adds all features from the specified iterator to the sink. More... | |
virtual bool | flushBuffer () |
Flushes any internal buffer which may exist in the sink, causing any buffered features to be added to the sink's destination. More... | |
An interface for objects which accept features via addFeature(s) methods.
Definition at line 33 of file qgsfeaturesink.h.
enum QgsFeatureSink::Flag |
Flags controlling how features are added to a sink.
Definition at line 38 of file qgsfeaturesink.h.
|
virtualdefault |
|
virtual |
Adds a single feature to the sink.
Feature addition behavior is controlled by the specified flags.
Reimplemented in QgsVectorLayer, QgsVectorFileWriter, QgsProcessingFeatureSink, QgsVectorLayerExporter, QgsProxyFeatureSink, and QgsFeatureStore.
Definition at line 20 of file qgsfeaturesink.cpp.
|
pure virtual |
Adds a list of features to the sink.
Feature addition behavior is controlled by the specified flags.
Implemented in QgsVectorLayer, QgsVectorFileWriter, QgsProcessingFeatureSink, QgsVectorDataProvider, QgsVectorLayerJoinBuffer, QgsVectorLayerExporter, QgsProxyFeatureSink, and QgsFeatureStore.
|
virtual |
Adds all features from the specified iterator to the sink.
Feature addition behavior is controlled by the specified flags.
Reimplemented in QgsProcessingFeatureSink, and QgsProxyFeatureSink.
Definition at line 34 of file qgsfeaturesink.cpp.
|
inlinevirtual |
Flushes any internal buffer which may exist in the sink, causing any buffered features to be added to the sink's destination.
Reimplemented in QgsVectorLayerExporter.
Definition at line 78 of file qgsfeaturesink.h.