QOpcUaEnumDefinition Class

The OPC UA EnumDefinition type. 更多...

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

公共函数

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 )

详细描述

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

成员函数文档编制

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 .

注意: 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.

另请参阅 setFields ().

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

Sets the fields of the enum type to fields .

另请参阅 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 )

移动赋值 other 到此 QOpcUaEnumDefinition 实例。

注意: 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 )

设置值从 rhs in this enum definition.

相关非成员

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

返回 true if lhs 不等于 rhs .

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

返回 true if lhs 等于 rhs .