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) |
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) |
成员函数文档
QOpcUaEnumDefinition::QOpcUaEnumDefinition()
默认构造一个未设置参数的枚举定义。
QOpcUaEnumDefinition::QOpcUaEnumDefinition(const QOpcUaEnumDefinition &other)
从other 中构造一个枚举定义。
[noexcept]
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 与此枚举定义对象互换。该操作速度非常快,而且从不出错。
QVariant 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
。
© 2025 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.