QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules 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. More...
 
 QgsFeatureStore (const QgsFeatureStore &rhs)
 Constructor. More...
 
 QgsFeatureStore (const QgsFields &fields, const QgsCoordinateReferenceSystem &crs)
 Constructor. More...
 
 ~QgsFeatureStore ()
 Destructor. More...
 
QgsFieldsfields ()
 Get fields list. More...
 
void setFields (const QgsFields &fields)
 Set fields. More...
 
QgsCoordinateReferenceSystem crs () const
 Get crs. More...
 
void setCrs (const QgsCoordinateReferenceSystem &crs)
 Set crs. More...
 
void addFeature (const QgsFeature &feature)
 Add feature. More...
 
QgsFeatureListfeatures ()
 Get features list reference. More...
 
void setParams (const QMap< QString, QVariant > &theParams)
 Set map of optional parameters. More...
 
QMap< QString, QVariant > params () const
 Get map of optional parameters. More...
 

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: