18#ifndef QGSUNSETATTRIBUTEVALUE_H
19#define QGSUNSETATTRIBUTEVALUE_H
61 SIP_PYOBJECT __repr__();
64 if ( !sipCpp->defaultValueClause().isEmpty() )
65 str = QStringLiteral(
"<QgsUnsetAttributeValue: %1>" ).arg( sipCpp->defaultValueClause() );
67 str = QStringLiteral(
"<QgsUnsetAttributeValue>" );
68 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
73 operator QVariant()
const
75 return QVariant::fromValue( *
this );
80 QString mDefaultValueClause;
89 return other == value.defaultValueClause();
Represents a default, "not-specified" value for a feature attribute.
bool operator==(const QgsUnsetAttributeValue &) const
QgsUnsetAttributeValues are always considered equal to each other, regardless of what the original pr...
QgsUnsetAttributeValue()=default
Constructor for a QgsUnsetAttributeValue.
bool operator!=(const QgsUnsetAttributeValue &) const
QgsUnsetAttributeValues are always considered equal to each other, regardless of what the original pr...
QString defaultValueClause() const
Returns the original data provider's default value clause.
Q_DECLARE_METATYPE(QgsDatabaseQueryLogEntry)
bool operator!=(const QgsUnsetAttributeValue &value, const QString &other)
bool CORE_EXPORT operator==(const QgsUnsetAttributeValue &value, const QString &other)