QGIS API Documentation
2.8.2-Wien
|
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. | |
const QList< ExpressionField > | expressions () const |
void | readXml (const QDomNode &layer_node) |
Reads expressions from project file. | |
void | removeExpression (int index) |
Remove an expression from the buffer. | |
void | updateFields (QgsFields &flds) |
Adds fields with the expressions buffered in this object to a QgsFields object. | |
void | writeXml (QDomNode &layer_node, QDomDocument &document) const |
Saves expressions to xml under the layer node. |
Buffers information about expression fields for a vector layer.
Definition at line 32 of file qgsexpressionfieldbuffer.h.
QgsExpressionFieldBuffer::QgsExpressionFieldBuffer | ( | ) |
Definition at line 22 of file qgsexpressionfieldbuffer.cpp.
void QgsExpressionFieldBuffer::addExpression | ( | const QString & | exp, |
const QgsField & | fld | ||
) |
Add an expression to the buffer.
exp | expression to add |
fld | field to add |
Definition at line 26 of file qgsexpressionfieldbuffer.cpp.
|
inline |
Definition at line 78 of file qgsexpressionfieldbuffer.h.
void QgsExpressionFieldBuffer::readXml | ( | const QDomNode & | layer_node | ) |
Reads expressions from project file.
Definition at line 57 of file qgsexpressionfieldbuffer.cpp.
void QgsExpressionFieldBuffer::removeExpression | ( | int | index | ) |
Remove an expression from the buffer.
index | index of expression to remove |
Definition at line 31 of file qgsexpressionfieldbuffer.cpp.
void QgsExpressionFieldBuffer::updateFields | ( | QgsFields & | flds | ) |
Adds fields with the expressions buffered in this object to a QgsFields object.
flds | The fields to be updated |
Definition at line 83 of file qgsexpressionfieldbuffer.cpp.
void QgsExpressionFieldBuffer::writeXml | ( | QDomNode & | layer_node, |
QDomDocument & | document | ||
) | const |
Saves expressions to xml under the layer node.
Definition at line 36 of file qgsexpressionfieldbuffer.cpp.