QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsCodedValue Class Reference

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.
 

Detailed Description

Associates a code and a value.

Since
QGIS 3.26

Definition at line 186 of file qgsfielddomain.h.

Constructor & Destructor Documentation

◆ QgsCodedValue()

QgsCodedValue::QgsCodedValue ( const QVariant &  code,
const QString &  value 
)
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.

Member Function Documentation

◆ code()

QVariant QgsCodedValue::code ( ) const
inline

Returns the associated code, which is the underlying value stored in fields.

Definition at line 205 of file qgsfielddomain.h.

◆ operator!=()

bool QgsCodedValue::operator!= ( const QgsCodedValue other) const

Definition at line 54 of file qgsfielddomain.cpp.

◆ operator==()

bool QgsCodedValue::operator== ( const QgsCodedValue other) const

Definition at line 49 of file qgsfielddomain.cpp.

◆ value()

QString QgsCodedValue::value ( ) const
inline

Returns the associated value, which is the user-friendly string representation.

Definition at line 211 of file qgsfielddomain.h.


The documentation for this class was generated from the following files: