QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
Associates a code and a value. More...
#include <qgsfielddomain.h>
Public Member Functions | |
QgsCodedValue (const QVariant &code, const QString &value) | |
Constructor for QgsCodedValue, with the associated code and value. | |
QVariant | code () const |
Returns the associated code, which is the underlying value stored in fields. | |
bool | operator!= (const QgsCodedValue &other) const |
bool | operator== (const QgsCodedValue &other) const |
QString | value () const |
Returns the associated value, which is the user-friendly string representation. | |
|
inline |
Constructor for QgsCodedValue, with the associated code and value.
The code is the underlying value stored in feature attributes, while the value is the user-facing string representation.
Definition at line 196 of file qgsfielddomain.h.
|
inline |
Returns the associated code, which is the underlying value stored in fields.
Definition at line 205 of file qgsfielddomain.h.
bool QgsCodedValue::operator!= | ( | const QgsCodedValue & | other | ) | const |
Definition at line 54 of file qgsfielddomain.cpp.
bool QgsCodedValue::operator== | ( | const QgsCodedValue & | other | ) | const |
Definition at line 49 of file qgsfielddomain.cpp.
|
inline |
Returns the associated value, which is the user-friendly string representation.
Definition at line 211 of file qgsfielddomain.h.