CodedValue Class

  • CodedValue
  • class Esri::ArcGISRuntime::CodedValue

    The coded value found in a CodedValueDomain. More...

    Header: #include <CodedValue.h>
    Since: Esri::ArcGISRuntime 100.0

    Public Functions

    CodedValue()
    CodedValue(const Esri::ArcGISRuntime::CodedValue &other)
    CodedValue(Esri::ArcGISRuntime::CodedValue &&other)
    ~CodedValue()
    QVariant code() const
    bool isEmpty() const
    QString name() const
    Esri::ArcGISRuntime::CodedValue &operator=(const Esri::ArcGISRuntime::CodedValue &other)
    Esri::ArcGISRuntime::CodedValue &operator=(Esri::ArcGISRuntime::CodedValue &&other)

    Detailed Description

    The coded value consists of a code and a name. For example, to represent road surfaces, a code of 1, 2, and 3 could have corresponding name values of gravel, asphalt, and concrete. The code is stored in the geodatabase and the corresponding user-friendly name is presented to the user for viewing or editing.

    A CodedValueDomain consists of a collection of CodedValue objects.

    Relevant samples:

    Member Function Documentation

    CodedValue::CodedValue()

    Default constructor. Creates an empty CodedValue.

    CodedValue::CodedValue(const Esri::ArcGISRuntime::CodedValue &other)

    Copy constructor from other CodedValue.

    CodedValue::CodedValue(Esri::ArcGISRuntime::CodedValue &&other)

    Move constructor from other CodedValue.

    CodedValue::~CodedValue()

    Destructor.

    QVariant CodedValue::code() const

    Returns the code for the coded value.

    bool CodedValue::isEmpty() const

    Returns true if this CodedValue is empty.

    QString CodedValue::name() const

    Returns the user-friendly name of the code.

    Esri::ArcGISRuntime::CodedValue &CodedValue::operator=(const Esri::ArcGISRuntime::CodedValue &other)

    Assignment operator from other CodedValue.

    Esri::ArcGISRuntime::CodedValue &CodedValue::operator=(Esri::ArcGISRuntime::CodedValue &&other)

    Move operator from other CodedValue.

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

    You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

    Your ArcGIS portal

    Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

    Your ArcGIS Location Platform dashboard

    Manage billing, monitor service usage, and access additional resources.

    Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

    Close