QOpcUaEnumDefinition Class
OPC UA 的 EnumDefinition 类型。更多内容...
| 头文件: | #include <QOpcUaEnumDefinition> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
| 自: | 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) |
| 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) |
成员函数文档
QOpcUaEnumDefinition::QOpcUaEnumDefinition()
默认会构建一个未设置任何参数的枚举定义。
QOpcUaEnumDefinition::QOpcUaEnumDefinition(const QOpcUaEnumDefinition &other)
根据other 生成枚举定义。
[constexpr noexcept default] QOpcUaEnumDefinition::QOpcUaEnumDefinition(QOpcUaEnumDefinition &&other)
从other 构建一个新的枚举定义。
注意: 被移动的对象 other 处于部分构筑状态,在此状态下,唯一有效的操作是销毁和赋予新值。
[noexcept] QOpcUaEnumDefinition::~QOpcUaEnumDefinition()
销毁此枚举定义对象。
QList<QOpcUaEnumField> QOpcUaEnumDefinition::fields() const
返回枚举类型的字段。
另请参阅 setFields()。
void QOpcUaEnumDefinition::setFields(const QList<QOpcUaEnumField> &fields)
将枚举类型的字段设置为fields 。
另请参阅 fields()。
[noexcept] void QOpcUaEnumDefinition::swap(QOpcUaEnumDefinition &other)
将枚举定义对象other 与该枚举定义对象互换。此操作速度极快,且绝不会失败。
QOpcUaEnumDefinition::operator QVariant() const
将此枚举定义转换为QVariant 。
[noexcept] QOpcUaEnumDefinition &QOpcUaEnumDefinition::operator=(QOpcUaEnumDefinition &&other)
将other 通过移动赋值操作赋值给该QOpcUaEnumDefinition 实例。
注意: 被移动的源对象 other 将处于部分初始化状态,在此状态下,唯一有效的操作是销毁或赋予新值。
QOpcUaEnumDefinition &QOpcUaEnumDefinition::operator=(const QOpcUaEnumDefinition &rhs)
将rhs 中的值设置到此枚举定义中。
相关非成员
[noexcept] bool operator!=(const QOpcUaEnumDefinition &lhs, const QOpcUaEnumDefinition &rhs)
如果lhs 不等于rhs ,则返回true 。
[noexcept] bool operator==(const QOpcUaEnumDefinition &lhs, const QOpcUaEnumDefinition &rhs)
如果 `lhs ` 等于 `rhs`,则返回 `true `。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.