Interface to convert raw field values to their user-friendly value.
More...
#include <qgsvectorfilewriter.h>
Interface to convert raw field values to their user-friendly value.
Definition at line 210 of file qgsvectorfilewriter.h.
◆ FieldValueConverter()
QgsVectorFileWriter::FieldValueConverter::FieldValueConverter |
( |
| ) |
|
|
default |
◆ ~FieldValueConverter()
virtual QgsVectorFileWriter::FieldValueConverter::~FieldValueConverter |
( |
| ) |
|
|
virtualdefault |
◆ clone()
◆ convert()
QVariant QgsVectorFileWriter::FieldValueConverter::convert |
( |
int |
fieldIdxInLayer, |
|
|
const QVariant & |
value |
|
) |
| |
|
virtual |
Convert the provided value, for field fieldIdxInLayer.
Default implementation will return provided value unmodified.
- Parameters
-
fieldIdxInLayer | field index |
value | original raw value |
- Returns
- possibly modified value.
Definition at line 65 of file qgsvectorfilewriter.cpp.
◆ fieldDefinition()
QgsField QgsVectorFileWriter::FieldValueConverter::fieldDefinition |
( |
const QgsField & |
field | ) |
|
|
virtual |
Returns a possibly modified field definition.
Default implementation will return provided field unmodified.
- Parameters
-
field | original field definition |
- Returns
- possibly modified field definition
Definition at line 60 of file qgsvectorfilewriter.cpp.
The documentation for this class was generated from the following files: