16 #ifndef QGSFIELD_PRIVATE_H 17 #define QGSFIELD_PRIVATE_H 37 #include <QSharedData> 45 class QgsFieldPrivate :
public QSharedData
49 QgsFieldPrivate(
const QString &name = QString(),
50 QVariant::Type type = QVariant::Invalid,
51 QVariant::Type subType = QVariant::Invalid,
52 const QString &typeName = QString(),
55 const QString &comment = QString() )
59 , typeName( typeName )
66 QgsFieldPrivate(
const QgsFieldPrivate &other )
67 : QSharedData( other )
70 , subType( other.subType )
71 , typeName( other.typeName )
72 , length( other.length )
73 , precision( other.precision )
74 , comment( other.comment )
75 , alias( other.alias )
76 , defaultValueDefinition( other.defaultValueDefinition )
77 , constraints( other.constraints )
81 ~QgsFieldPrivate() =
default;
83 bool operator==(
const QgsFieldPrivate &other )
const 85 return ( ( name == other.name ) && ( type == other.type ) && ( subType == other.subType )
86 && ( length == other.length ) && ( precision == other.precision )
87 && ( alias == other.alias ) && ( defaultValueDefinition == other.defaultValueDefinition )
88 && ( constraints == other.constraints ) );
98 QVariant::Type subType;
The QgsDefaultValue class provides a container for managing client side default values for fields...
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
Stores information about constraints which may be present on a field.