2017-04-26 10:39:57 +10:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgsfeaturesink.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsFeatureSink
|
|
|
|
{
|
|
|
|
%Docstring
|
|
|
|
An interface for objects which accept features via addFeature(s) methods.
|
|
|
|
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsfeaturesink.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
|
|
|
virtual ~QgsFeatureSink();
|
|
|
|
|
2017-04-26 11:56:25 +10:00
|
|
|
virtual bool addFeature( QgsFeature &feature );
|
2017-04-26 10:39:57 +10:00
|
|
|
%Docstring
|
|
|
|
Adds a single ``feature`` to the sink.
|
|
|
|
\see addFeatures()
|
2017-04-26 10:43:07 +10:00
|
|
|
:return: true in case of success and false in case of failure
|
2017-04-26 10:39:57 +10:00
|
|
|
:rtype: bool
|
|
|
|
%End
|
|
|
|
|
2017-04-26 11:28:06 +10:00
|
|
|
virtual bool addFeatures( QgsFeatureList &features ) = 0;
|
2017-04-26 10:39:57 +10:00
|
|
|
%Docstring
|
|
|
|
Adds a list of ``features`` to the sink.
|
|
|
|
\see addFeature()
|
2017-04-26 10:43:07 +10:00
|
|
|
:return: true in case of success and false in case of failure
|
2017-04-26 10:39:57 +10:00
|
|
|
:rtype: bool
|
|
|
|
%End
|
|
|
|
|
2017-04-26 11:43:47 +10:00
|
|
|
virtual bool addFeatures( QgsFeatureIterator &iterator );
|
|
|
|
%Docstring
|
|
|
|
Adds all features from the specified ``iterator`` to the sink.
|
|
|
|
:return: true if all features were added successfully, or false if any feature could not be added
|
|
|
|
:rtype: bool
|
|
|
|
%End
|
|
|
|
|
2017-04-26 10:39:57 +10:00
|
|
|
};
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgsfeaturesink.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|