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() );
75 operator QVariant()
const
77 return QVariant::fromValue( *
this );
81 QString mDefaultValueClause;
87#if ( __GNUC__ > 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ >= 6 ) ) || defined( __clang__ )
88#pragma GCC diagnostic push
89#pragma GCC diagnostic ignored "-Wattributes"
90#elif defined( _MSC_VER )
91__pragma( warning( push ) ) __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)