18 #ifndef QGSEXPRESSIONFIELDBUFFER_H 19 #define QGSEXPRESSIONFIELDBUFFER_H 21 #include "qgis_core.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 );
106 QList<QgsExpressionFieldBuffer::ExpressionField>
expressions()
const {
return mExpressions; }
109 QList<ExpressionField> mExpressions;
112 #endif // QGSEXPRESSIONFIELDBUFFER_H Class for parsing and evaluation of expressions (formerly called "search strings").
Container of fields for a vector layer.
ExpressionField(const QString &exp, const QgsField &fld)
Encapsulate a field in an attribute table or data source.
Buffers information about expression fields for a vector layer.
QList< QgsExpressionFieldBuffer::ExpressionField > expressions() const
QgsExpression cachedExpression