QGIS/python/core/qgsfeaturestore.sip
Nyall Dawson 24d9c65494 Fix more classes which violate the rule-of-three
Also remove some empty destructors
2016-01-26 14:24:45 +11:00

40 lines
1.0 KiB
Plaintext

class QgsFeatureStore
{
%TypeHeaderCode
#include <qgsfeaturestore.h>
%End
public:
//! Constructor
QgsFeatureStore();
//! Constructor
QgsFeatureStore( const QgsFields& fields, const QgsCoordinateReferenceSystem& crs );
/** Get fields list */
QgsFields& fields();
/** Set fields. Resets feature's fields to pointer to new internal fields. */
void setFields( const QgsFields & fields );
/** Get crs */
QgsCoordinateReferenceSystem crs() const;
/** Set crs */
void setCrs( const QgsCoordinateReferenceSystem& crs );
/** Add feature. Feature's fields will be set to pointer to the store fields.
* @param feature
* @note added in 2.1
*/
void addFeature( const QgsFeature& feature );
/** Get features list reference */
QgsFeatureList& features();
/** Set map of optional parameters */
void setParams( const QMap<QString, QVariant> &theParams );
/** Get map of optional parameters */
QMap<QString, QVariant> params() const;
};