QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
QgsFeatureStore Class Reference

Container for features with the same fields and crs. More...

#include <qgsfeaturestore.h>

Public Member Functions

 QgsFeatureStore ()
 Constructor.
 QgsFeatureStore (const QgsFeatureStore &rhs)
 Constructor.
 QgsFeatureStore (const QgsFields &fields, const QgsCoordinateReferenceSystem &crs)
 Constructor.
 ~QgsFeatureStore ()
 Destructor.
QgsFieldsfields ()
 Get fields list.
void setFields (const QgsFields &fields)
 Set fields.
QgsCoordinateReferenceSystem crs () const
 Get crs.
void setCrs (const QgsCoordinateReferenceSystem &crs)
 Set crs.
void addFeature (const QgsFeature &feature)
 Add feature.
QgsFeatureListfeatures ()
 Get features list reference.
void setParams (const QMap< QString, QVariant > &theParams)
 Set map of optional parameters.
QMap< QString, QVariant > params () const
 Get map of optional parameters.

Detailed Description

Container for features with the same fields and crs.

Constructor & Destructor Documentation

QgsFeatureStore::QgsFeatureStore ( )

Constructor.

QgsFeatureStore::QgsFeatureStore ( const QgsFeatureStore rhs)

Constructor.

QgsFeatureStore::QgsFeatureStore ( const QgsFields fields,
const QgsCoordinateReferenceSystem crs 
)

Constructor.

QgsFeatureStore::~QgsFeatureStore ( )

Destructor.

Member Function Documentation

void QgsFeatureStore::addFeature ( const QgsFeature feature)

Add feature.

Feature's fields will be set to pointer to the store fields.

Parameters
feature
Note
added in 2.1
QgsCoordinateReferenceSystem QgsFeatureStore::crs ( ) const
inline

Get crs.

QgsFeatureList& QgsFeatureStore::features ( )
inline

Get features list reference.

QgsFields& QgsFeatureStore::fields ( )
inline

Get fields list.

QMap<QString, QVariant> QgsFeatureStore::params ( ) const
inline

Get map of optional parameters.

void QgsFeatureStore::setCrs ( const QgsCoordinateReferenceSystem crs)
inline

Set crs.

void QgsFeatureStore::setFields ( const QgsFields fields)

Set fields.

Resets feauters fields to pointer to new internal fields.

void QgsFeatureStore::setParams ( const QMap< QString, QVariant > &  theParams)
inline

Set map of optional parameters.


The documentation for this class was generated from the following files: