QOpcUaEnumDefinition Class

The OPC UA EnumDefinition type. More...

Header: #include <QOpcUaEnumDefinition>
CMake: find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua
Since: Qt 6.7

Public Functions

QOpcUaEnumDefinition()
QOpcUaEnumDefinition(const QOpcUaEnumDefinition &other)
QOpcUaEnumDefinition(QOpcUaEnumDefinition &&other)
~QOpcUaEnumDefinition()
QList<QOpcUaEnumField> fields() const
void setFields(const QList<QOpcUaEnumField> &fields)
void swap(QOpcUaEnumDefinition &other)
QVariant operator QVariant() const
QOpcUaEnumDefinition &operator=(QOpcUaEnumDefinition &&other)
QOpcUaEnumDefinition &operator=(const QOpcUaEnumDefinition &rhs)
bool operator!=(const QOpcUaEnumDefinition &lhs, const QOpcUaEnumDefinition &rhs)
bool operator==(const QOpcUaEnumDefinition &lhs, const QOpcUaEnumDefinition &rhs)

Detailed Description

This is the Qt OPC UA representation for the OPC UA EnumDefinition type defined in OPC UA part 3. It describes an enumerated type.

Member Function Documentation

QOpcUaEnumDefinition::QOpcUaEnumDefinition()

Default constructs an enum definition with no parameters set.

QOpcUaEnumDefinition::QOpcUaEnumDefinition(const QOpcUaEnumDefinition &other)

Constructs an enum definition from other.

[noexcept] QOpcUaEnumDefinition::QOpcUaEnumDefinition(QOpcUaEnumDefinition &&other)

Move-constructs a new enum definition from other.

Note: The moved-from object other is placed in a partially-formed state, in which the only valid operations are destruction and assignment of a new value.

[noexcept] QOpcUaEnumDefinition::~QOpcUaEnumDefinition()

Destroys this enum definition object.

QList<QOpcUaEnumField> QOpcUaEnumDefinition::fields() const

Returns the fields of the enum type.

See also setFields().

void QOpcUaEnumDefinition::setFields(const QList<QOpcUaEnumField> &fields)

Sets the fields of the enum type to fields.

See also fields().

[noexcept] void QOpcUaEnumDefinition::swap(QOpcUaEnumDefinition &other)

Swaps enum definition object other with this enum definition object. This operation is very fast and never fails.

QVariant QOpcUaEnumDefinition::operator QVariant() const

Converts this enum definition to QVariant.

[noexcept] QOpcUaEnumDefinition &QOpcUaEnumDefinition::operator=(QOpcUaEnumDefinition &&other)

Move-assigns other to this QOpcUaEnumDefinition instance.

Note: The moved-from object other is placed in a partially-formed state, in which the only valid operations are destruction and assignment of a new value.

QOpcUaEnumDefinition &QOpcUaEnumDefinition::operator=(const QOpcUaEnumDefinition &rhs)

Sets the values from rhs in this enum definition.

Related Non-Members

[noexcept] bool operator!=(const QOpcUaEnumDefinition &lhs, const QOpcUaEnumDefinition &rhs)

Returns true if lhs is not equal to rhs.

[noexcept] bool operator==(const QOpcUaEnumDefinition &lhs, const QOpcUaEnumDefinition &rhs)

Returns true if lhs is equal to rhs.