QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsGlobFieldDomain Class Reference

Definition of a field domain for field content validated by a glob. More...

#include <qgsfielddomain.h>

Inheritance diagram for QgsGlobFieldDomain:
Inheritance graph
[legend]

Public Member Functions

 QgsGlobFieldDomain (const QgsGlobFieldDomain &)=delete
 QgsGlobFieldDomain cannot be copied - use clone() instead.
 
 QgsGlobFieldDomain (const QString &name, const QString &description, QMetaType::Type fieldType, const QString &glob)
 Constructor for QgsGlobFieldDomain, with the specified name, description and fieldType.
 
Q_DECL_DEPRECATED QgsGlobFieldDomain (const QString &name, const QString &description, QVariant::Type fieldType, const QString &glob)
 Constructor for QgsGlobFieldDomain, with the specified name, description and fieldType.
 
QgsGlobFieldDomainclone () const override
 Clones the field domain.
 
QString glob () const
 Returns the glob expression.
 
QgsGlobFieldDomainoperator= (const QgsGlobFieldDomain &)=delete
 QgsGlobFieldDomain cannot be copied - use clone() instead.
 
void setGlob (const QString &glob)
 Sets the glob expression.
 
Qgis::FieldDomainType type () const override
 Returns the type of field domain.
 
QString typeName () const override
 Returns a translated name of the field domain type.
 
- Public Member Functions inherited from QgsFieldDomain
 QgsFieldDomain (const QString &name, const QString &description, QMetaType::Type fieldType)
 Constructor for QgsFieldDomain, with the specified name, description and fieldType.
 
Q_DECL_DEPRECATED QgsFieldDomain (const QString &name, const QString &description, QVariant::Type fieldType)
 Constructor for QgsFieldDomain, with the specified name, description and fieldType.
 
virtual ~QgsFieldDomain ()
 
QString description () const
 Returns the description of the field domain.
 
QMetaType::Type fieldType () const
 Returns the associated field type.
 
Qgis::FieldDomainMergePolicy mergePolicy () const
 Returns the merge policy.
 
QString name () const
 Returns the name of the field domain.
 
void setDescription (const QString &description)
 Sets the description of the field domain.
 
void setFieldType (QMetaType::Type type)
 Sets the associated field type.
 
Q_DECL_DEPRECATED void setFieldType (QVariant::Type type)
 Sets the associated field type.
 
void setMergePolicy (Qgis::FieldDomainMergePolicy policy)
 Sets the merge policy.
 
void setName (const QString &name)
 Sets the name of the field domain.
 
void setSplitPolicy (Qgis::FieldDomainSplitPolicy policy)
 Sets the split policy.
 
Qgis::FieldDomainSplitPolicy splitPolicy () const
 Returns the split policy.
 

Additional Inherited Members

- Protected Attributes inherited from QgsFieldDomain
QString mDescription
 
QMetaType::Type mFieldType = QMetaType::Type::QString
 
Qgis::FieldDomainMergePolicy mMergePolicy = Qgis::FieldDomainMergePolicy::DefaultValue
 
QString mName
 
Qgis::FieldDomainSplitPolicy mSplitPolicy = Qgis::FieldDomainSplitPolicy::DefaultValue
 

Detailed Description

Definition of a field domain for field content validated by a glob.

Globs are matching expression like *[a-z][0-1]?

Since
QGIS 3.26

Definition at line 465 of file qgsfielddomain.h.

Constructor & Destructor Documentation

◆ QgsGlobFieldDomain() [1/3]

QgsGlobFieldDomain::QgsGlobFieldDomain ( const QString &  name,
const QString &  description,
QMetaType::Type  fieldType,
const QString &  glob 
)

Constructor for QgsGlobFieldDomain, with the specified name, description and fieldType.

The glob argument specifies the content validation glob, e.g. *[a-z][0-1]?.

Definition at line 136 of file qgsfielddomain.cpp.

◆ QgsGlobFieldDomain() [2/3]

QgsGlobFieldDomain::QgsGlobFieldDomain ( const QString &  name,
const QString &  description,
QVariant::Type  fieldType,
const QString &  glob 
)

Constructor for QgsGlobFieldDomain, with the specified name, description and fieldType.

The glob argument specifies the content validation glob, e.g. *[a-z][0-1]?.

Deprecated:
QGIS 3.38. Use the method with a QMetaType::Type argument instead.

Definition at line 143 of file qgsfielddomain.cpp.

◆ QgsGlobFieldDomain() [3/3]

QgsGlobFieldDomain::QgsGlobFieldDomain ( const QgsGlobFieldDomain )
delete

QgsGlobFieldDomain cannot be copied - use clone() instead.

Member Function Documentation

◆ clone()

QgsGlobFieldDomain * QgsGlobFieldDomain::clone ( ) const
overridevirtual

Clones the field domain.

Implements QgsFieldDomain.

Definition at line 158 of file qgsfielddomain.cpp.

◆ glob()

QString QgsGlobFieldDomain::glob ( ) const
inline

Returns the glob expression.

Globs are matching expression like *[a-z][0-1]?

See also
setGlob()

Definition at line 510 of file qgsfielddomain.h.

◆ operator=()

QgsGlobFieldDomain & QgsGlobFieldDomain::operator= ( const QgsGlobFieldDomain )
delete

QgsGlobFieldDomain cannot be copied - use clone() instead.

◆ setGlob()

void QgsGlobFieldDomain::setGlob ( const QString &  glob)
inline

Sets the glob expression.

Globs are matching expression like *[a-z][0-1]?

See also
glob()

Definition at line 519 of file qgsfielddomain.h.

◆ type()

Qgis::FieldDomainType QgsGlobFieldDomain::type ( ) const
overridevirtual

Returns the type of field domain.

Implements QgsFieldDomain.

Definition at line 148 of file qgsfielddomain.cpp.

◆ typeName()

QString QgsGlobFieldDomain::typeName ( ) const
overridevirtual

Returns a translated name of the field domain type.

Implements QgsFieldDomain.

Definition at line 153 of file qgsfielddomain.cpp.


The documentation for this class was generated from the following files: