QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
25 , mDescription( description )
26 , mFieldType( fieldType )
38 return other.mCode == mCode && other.mValue == mValue;
43 return !( *
this == other );
64 return QObject::tr(
"Coded Values" );
79 QgsRangeFieldDomain::QgsRangeFieldDomain(
const QString &name,
const QString &description, QVariant::Type fieldType,
const QVariant &minimum,
bool minimumIsInclusive,
const QVariant &maximum,
bool maximumIsInclusive )
83 , mMinIsInclusive( minimumIsInclusive )
84 , mMaxIsInclusive( maximumIsInclusive )
96 return QObject::tr(
"Range" );
101 std::unique_ptr< QgsRangeFieldDomain > res = std::make_unique< QgsRangeFieldDomain >(
mName,
mDescription,
mFieldType, mMin, mMinIsInclusive, mMax, mMaxIsInclusive );
104 return res.release();
126 return QObject::tr(
"Glob" );
134 return res.release();
QgsRangeFieldDomain(const QString &name, const QString &description, QVariant::Type fieldType, const QVariant &minimum, bool minimumIsInclusive, const QVariant &maximum, bool maximumIsInclusive)
Constructor for QgsRangeFieldDomain, with the specified name, description and fieldType.
@ Glob
Glob string pattern field domain.
Qgis::FieldDomainType type() const override
Returns the type of field domain.
FieldDomainType
Types of field domain.
QgsGlobFieldDomain * clone() const override
Clones the field domain.
Definition of a coded / enumerated field domain.
QString typeName() const override
Returns a translated name of the field domain type.
QString typeName() const override
Returns a translated name of the field domain type.
Definition of a field domain for field content validated by a glob.
QgsRangeFieldDomain * clone() const override
Clones the field domain.
Qgis::FieldDomainSplitPolicy mSplitPolicy
QgsCodedFieldDomain(const QString &name, const QString &description, QVariant::Type fieldType, const QList< QgsCodedValue > &values)
Constructor for QgsCodedFieldDomain, with the associated name, description and fieldType.
Qgis::FieldDomainMergePolicy mMergePolicy
bool operator==(const QgsCodedValue &other) const
Qgis::FieldDomainType type() const override
Returns the type of field domain.
bool operator!=(const QgsCodedValue &other) const
QgsGlobFieldDomain(const QString &name, const QString &description, QVariant::Type fieldType, const QString &glob)
Constructor for QgsGlobFieldDomain, with the specified name, description and fieldType.
QgsCodedFieldDomain * clone() const override
Clones the field domain.
QgsFieldDomain(const QString &name, const QString &description, QVariant::Type fieldType)
Constructor for QgsFieldDomain, with the specified name, description and fieldType.
Qgis::FieldDomainType type() const override
Returns the type of field domain.
@ Range
Numeric range field domain (min/max)
Definition of a numeric field domain with a range of validity for values.
Base class for field domains.
virtual ~QgsFieldDomain()
@ Coded
Coded field domain.
QVariant::Type mFieldType
Associates a code and a value.
QString typeName() const override
Returns a translated name of the field domain type.