18#ifndef QGSUNSETATTRIBUTEVALUE_H
19#define QGSUNSETATTRIBUTEVALUE_H
27using namespace Qt::StringLiterals;
62 SIP_PYOBJECT __repr__();
65 if ( !sipCpp->defaultValueClause().isEmpty() )
66 str = u
"<QgsUnsetAttributeValue: %1>"_s.arg( sipCpp->defaultValueClause() );
68 str = u
"<QgsUnsetAttributeValue>"_s;
69 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
74 operator QVariant()
const
76 return QVariant::fromValue( *
this );
81 QString mDefaultValueClause;
88#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) || defined(__clang__)
89#pragma GCC diagnostic push
90#pragma GCC diagnostic ignored "-Wattributes"
91#elif defined(_MSC_VER)
92__pragma( warning( push ) )
93__pragma( warning( disable: 4273 ) )
103#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) || defined(__clang__)
104#pragma GCC diagnostic pop
105#elif defined(_MSC_VER)
106__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)