18#ifndef QGSEXPRESSIONFIELDBUFFER_H
19#define QGSEXPRESSIONFIELDBUFFER_H
40 : cachedExpression( exp )
56 void addExpression(
const QString &exp,
const QgsField &fld );
63 void removeExpression(
int index );
72 void renameExpression(
int index,
const QString &name );
81 void updateExpression(
int index,
const QString &exp );
86 void writeXml( QDomNode &layer_node, QDomDocument &document )
const;
91 void readXml(
const QDomNode &layer_node );
98 void updateFields(
QgsFields &flds )
const;
100 QList<QgsExpressionFieldBuffer::ExpressionField>
expressions()
const {
return mExpressions; }
103 QList<ExpressionField> mExpressions;
Buffers information about expression fields for a vector layer.
QList< QgsExpressionFieldBuffer::ExpressionField > expressions() const
QgsExpressionFieldBuffer()=default
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)