本页内容

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 的值。

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