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