18#ifndef QGSEXPRESSIONFIELDBUFFER_H
19#define QGSEXPRESSIONFIELDBUFFER_H
41 : cachedExpression( exp )
60 void addExpression(
const QString &exp,
const QgsField &fld );
67 void removeExpression(
int index );
77 void renameExpression(
int index,
const QString &name );
87 void updateExpression(
int index,
const QString &exp );
92 void writeXml( QDomNode &layer_node, QDomDocument &document )
const;
97 void readXml(
const QDomNode &layer_node );
104 void updateFields(
QgsFields &flds )
const;
106 QList<QgsExpressionFieldBuffer::ExpressionField>
expressions()
const {
return mExpressions; }
109 QList<ExpressionField> mExpressions;
Buffers information about expression fields for a vector layer.
QList< QgsExpressionFieldBuffer::ExpressionField > expressions() const
QgsExpressionFieldBuffer()=default
Constructor for QgsExpressionFieldBuffer.
Class for parsing and evaluation of expressions (formerly called "search strings").
Encapsulate a field in an attribute table or data source.
Container of fields for a vector layer.
QgsExpression cachedExpression
ExpressionField(const QString &exp, const QgsField &fld)