QOpcUaBrowseRequest Class

包含调用 OPC UA 浏览服务的参数。更多

头文件: #include <QOpcUaBrowseRequest>
CMake: find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua

公共类型

enum class BrowseDirection { Forward, Inverse, Both }

公共函数

QOpcUaBrowseRequest()
QOpcUaBrowseRequest(const QOpcUaBrowseRequest &other)
QOpcUaBrowseRequest::BrowseDirection browseDirection() const
bool includeSubtypes() const
QOpcUa::NodeClasses nodeClassMask() const
QString referenceTypeId() const
void setBrowseDirection(const QOpcUaBrowseRequest::BrowseDirection &browseDirection)
void setIncludeSubtypes(bool includeSubtypes)
void setNodeClassMask(const QOpcUa::NodeClasses &nodeClassMask)
void setReferenceTypeId(QOpcUa::ReferenceTypeId referenceTypeId)
void setReferenceTypeId(const QString &referenceTypeId)
QOpcUaBrowseRequest &operator=(const QOpcUaBrowseRequest &rhs)

详细说明

另请参见 QOpcUaNode::browse().

成员类型文档

enum class QOpcUaBrowseRequest::BrowseDirection

该枚举指定浏览调用支持的可能浏览方向。

常量描述
QOpcUaBrowseRequest::BrowseDirection::Forward0正向跟踪引用。
QOpcUaBrowseRequest::BrowseDirection::Inverse1反向跟踪引用。
QOpcUaBrowseRequest::BrowseDirection::Both2双向引用

成员函数文档

QOpcUaBrowseRequest::QOpcUaBrowseRequest()

默认构建一个不设置参数的浏览请求。

QOpcUaBrowseRequest::QOpcUaBrowseRequest(const QOpcUaBrowseRequest &other)

other 创建浏览请求。

QOpcUaBrowseRequest::BrowseDirection QOpcUaBrowseRequest::browseDirection() const

返回浏览方向。

另请参阅 setBrowseDirection()。

bool QOpcUaBrowseRequest::includeSubtypes() const

如果也将检索引用类型的子类型,则返回 true。

另请参阅 setIncludeSubtypes()。

QOpcUa::NodeClasses QOpcUaBrowseRequest::nodeClassMask() const

返回节点类掩码。

另请参见 setNodeClassMask()。

QString QOpcUaBrowseRequest::referenceTypeId() const

返回引用类型 ID。

另请参见 setReferenceTypeId()。

void QOpcUaBrowseRequest::setBrowseDirection(const QOpcUaBrowseRequest::BrowseDirection &browseDirection)

将浏览方向设置为browseDirection

另请参阅 browseDirection() 。

void QOpcUaBrowseRequest::setIncludeSubtypes(bool includeSubtypes)

将包含引用类型的子类型设置为includeSubtypes

另请参阅 includeSubtypes() 。

void QOpcUaBrowseRequest::setNodeClassMask(const QOpcUa::NodeClasses &nodeClassMask)

将节点类别掩码设置为nodeClassMask 。浏览操作将返回节点类别掩码中包含的所有类别的节点。

另请参阅 nodeClassMask() 。

void QOpcUaBrowseRequest::setReferenceTypeId(QOpcUa::ReferenceTypeId referenceTypeId)

将引用类型 id 设置为referenceTypeId

另请参阅 referenceTypeId() 。

void QOpcUaBrowseRequest::setReferenceTypeId(const QString &referenceTypeId)

将引用类型 id 设置为referenceTypeId

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

在此浏览请求中设置rhs 中的值。

© 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.