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.
Default constructs an enum definition with no parameters set.
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.
Returns the fields of the enum type.
另请参阅 setFields ().
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.
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.
设置值从 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
.