18#ifndef QGSUNSETATTRIBUTEVALUE_H
19#define QGSUNSETATTRIBUTEVALUE_H
60 SIP_PYOBJECT __repr__();
63 if ( !sipCpp->defaultValueClause().isEmpty() )
64 str = QStringLiteral(
"<QgsUnsetAttributeValue: %1>" ).arg( sipCpp->defaultValueClause() );
66 str = QStringLiteral(
"<QgsUnsetAttributeValue>" );
67 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
72 operator QVariant()
const
74 return QVariant::fromValue( *
this );
79 QString mDefaultValueClause;
86#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) || defined(__clang__)
87#pragma GCC diagnostic push
88#pragma GCC diagnostic ignored "-Wattributes"
89#elif defined(_MSC_VER)
90__pragma( warning( push ) )
91__pragma( warning( disable: 4273 ) )
101#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) || defined(__clang__)
102#pragma GCC diagnostic pop
103#elif defined(_MSC_VER)
104__pragma( warning( pop ) )
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)