QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
Interface to convert raw field values to their user-friendly value. More...
#include <qgsvectorfilewriter.h>
Public Member Functions | |
FieldValueConverter () | |
Constructor. More... | |
virtual | ~FieldValueConverter () |
Destructor. More... | |
virtual QVariant | convert (int fieldIdxInLayer, const QVariant &value) |
Convert the provided value, for field fieldIdxInLayer. More... | |
virtual QgsField | fieldDefinition (const QgsField &field) |
Return a possibly modified field definition. More... | |
Interface to convert raw field values to their user-friendly value.
Definition at line 179 of file qgsvectorfilewriter.h.
QgsVectorFileWriter::FieldValueConverter::FieldValueConverter | ( | ) |
Constructor.
Definition at line 58 of file qgsvectorfilewriter.cpp.
|
virtual |
Destructor.
Definition at line 62 of file qgsvectorfilewriter.cpp.
|
virtual |
Convert the provided value, for field fieldIdxInLayer.
Default implementation will return provided value unmodified.
fieldIdxInLayer | field index |
value | original raw value |
Definition at line 71 of file qgsvectorfilewriter.cpp.
|
virtual |
Return a possibly modified field definition.
Default implementation will return provided field unmodified.
field | original field definition |
Definition at line 66 of file qgsvectorfilewriter.cpp.