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:
- Validate utility network topology: Demonstrates the workflow of getting the network state and validating the topology of a utility network.
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.