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

Buffers information about expression fields for a vector layer. More...

#include <qgsexpressionfieldbuffer.h>

Classes

struct  ExpressionField

Public Types

typedef struct
QgsExpressionFieldBuffer::ExpressionField 
ExpressionField

Public Member Functions

 QgsExpressionFieldBuffer ()
void addExpression (const QString &exp, const QgsField &fld)
 Add an expression to the buffer.
void removeExpression (int index)
 Remove an expression from the buffer.
void writeXml (QDomNode &layer_node, QDomDocument &document) const
 Saves expressions to xml under the layer node.
void readXml (const QDomNode &layer_node)
 Reads expressions from project file.
void updateFields (QgsFields &flds)
 Adds fields with the expressions buffered in this object to a QgsFields object.
const QList< ExpressionFieldexpressions () const

Detailed Description

Buffers information about expression fields for a vector layer.

Note
added in 2.6

Member Typedef Documentation

Constructor & Destructor Documentation

QgsExpressionFieldBuffer::QgsExpressionFieldBuffer ( )

Member Function Documentation

void QgsExpressionFieldBuffer::addExpression ( const QString &  exp,
const QgsField fld 
)

Add an expression to the buffer.

Parameters
expexpression to add
fldfield to add
const QList<ExpressionField> QgsExpressionFieldBuffer::expressions ( ) const
inline
void QgsExpressionFieldBuffer::readXml ( const QDomNode &  layer_node)

Reads expressions from project file.

void QgsExpressionFieldBuffer::removeExpression ( int  index)

Remove an expression from the buffer.

Parameters
indexindex of expression to remove
void QgsExpressionFieldBuffer::updateFields ( QgsFields flds)

Adds fields with the expressions buffered in this object to a QgsFields object.

Parameters
fldsThe fields to be updated
void QgsExpressionFieldBuffer::writeXml ( QDomNode &  layer_node,
QDomDocument &  document 
) const

Saves expressions to xml under the layer node.


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