18#ifndef QGSUNSETATTRIBUTEVALUE_H
19#define QGSUNSETATTRIBUTEVALUE_H
58 SIP_PYOBJECT __repr__();
61 if ( !sipCpp->defaultValueClause().isEmpty() )
62 str = QStringLiteral(
"<QgsUnsetAttributeValue: %1>" ).arg( sipCpp->defaultValueClause() );
64 str = QStringLiteral(
"<QgsUnsetAttributeValue>" );
65 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
70 operator QVariant()
const
72 return QVariant::fromValue( *
this );
77 QString mDefaultValueClause;
86 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
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)