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 (const QString & referenceTypeId )
void setReferenceTypeId (QOpcUa::ReferenceTypeId referenceTypeId )
QOpcUaBrowseRequest & operator= (const QOpcUaBrowseRequest & rhs )

详细描述

另请参阅 QOpcUaNode::browse ().

成员类型文档编制

enum class QOpcUaBrowseRequest:: BrowseDirection

This enum specifies the possible browse directions supported by a browse call.

常量 描述
QOpcUaBrowseRequest::BrowseDirection::Forward 0 Follow references in the forward direction.
QOpcUaBrowseRequest::BrowseDirection::Inverse 1 Follow references in the inverse direction.
QOpcUaBrowseRequest::BrowseDirection::Both 2 Follow references in both directions.

成员函数文档编制

QOpcUaBrowseRequest:: QOpcUaBrowseRequest ()

Default constructs a browse request with no parameters set.

QOpcUaBrowseRequest:: QOpcUaBrowseRequest (const QOpcUaBrowseRequest & other )

创建浏览请求从 other .

QOpcUaBrowseRequest::BrowseDirection QOpcUaBrowseRequest:: browseDirection () const

Returns the browse direction.

另请参阅 setBrowseDirection ().

bool QOpcUaBrowseRequest:: includeSubtypes () const

Returns true if subtypes of the reference type will be retrieved too.

另请参阅 setIncludeSubtypes ().

QOpcUa::NodeClasses QOpcUaBrowseRequest:: nodeClassMask () const

Returns the node class mask.

另请参阅 setNodeClassMask ().

QString QOpcUaBrowseRequest:: referenceTypeId () const

Returns the reference type id.

另请参阅 setReferenceTypeId ().

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

Sets the browse direction to browseDirection .

另请参阅 browseDirection ().

void QOpcUaBrowseRequest:: setIncludeSubtypes ( bool includeSubtypes )

Sets the inclusion of subtypes of the reference type to includeSubtypes .

另请参阅 includeSubtypes ().

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

Sets the node class mask to nodeClassMask . Nodes of all classes included into the node class mask will be returned by the browse operation.

另请参阅 nodeClassMask ().

void QOpcUaBrowseRequest:: setReferenceTypeId (const QString & referenceTypeId )

Sets the reference type id to referenceTypeId .

另请参阅 referenceTypeId ().

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

Sets the reference type id to referenceTypeId .

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

设置值从 rhs in this browse request.