The OPC UA RelativePathElement. 更多...
头: | #include <QOpcUaRelativePathElement> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
qmake: | QT += opcua |
QOpcUaRelativePathElement () | |
QOpcUaRelativePathElement (const QOpcUaQualifiedName & target , const QString & refType ) | |
QOpcUaRelativePathElement (const QOpcUaQualifiedName & target , QOpcUa::ReferenceTypeId refType ) | |
QOpcUaRelativePathElement (const QOpcUaRelativePathElement & rhs ) | |
bool | includeSubtypes () const |
bool | isInverse () const |
QString | referenceTypeId () const |
void | setIncludeSubtypes (bool includeSubtypes ) |
void | setIsInverse (bool isInverse ) |
void | setReferenceTypeId (const QString & referenceTypeId ) |
void | setReferenceTypeId (QOpcUa::ReferenceTypeId referenceTypeId ) |
void | setTargetName (const QOpcUaQualifiedName & targetName ) |
QOpcUaQualifiedName | targetName () const |
(从 6.7 起)
QVariant
|
operator QVariant () const |
QOpcUaRelativePathElement & | operator= (const QOpcUaRelativePathElement & rhs ) |
(从 6.7 起)
bool
|
operator!= (const QOpcUaRelativePathElement & lhs , const QOpcUaRelativePathElement & rhs ) |
bool | operator== (const QOpcUaRelativePathElement & lhs , const QOpcUaRelativePathElement & rhs ) |
QOpcUaRelativePathElement defines an element of a relative path on an OPC UA server. This is needed for resolution of browse paths to node ids in QOpcUaNode::resolveBrowsePath ().
Constructs a relative path element with both flags set to
false
.
Constructs a relative path element with
targetName
target
, reference type node id
refType
and both flags set to
false
.
Constructs a relative path element with
targetName
target
,
QOpcUa::ReferenceTypeId
refType
and both flags set to
false
.
Constructs a relative path element from rhs .
Returns the value of the includeSubtypes flag.
另请参阅 setIncludeSubtypes ().
Returns the value of the isInverse flag.
另请参阅 setIsInverse ().
Returns the type id of the reference connecting this node to the previous node.
另请参阅 setReferenceTypeId ().
设置
includeSubtypes
flag to
includeSubtypes
. If the flag is
true
, the lookup also follows references with subtypes of
referenceTypeId
().
另请参阅 includeSubtypes ().
设置
isInverse
flag to
isInverse
. If the flag is
true
, the lookup follows the reverse reference.
另请参阅 isInverse ().
Sets the reference type id to referenceTypeId .
另请参阅 referenceTypeId ().
Sets the reference type id to referenceTypeId .
Sets the target name to targetName ,例如 QOpcUaQualifiedName (0, "DataTypes").
另请参阅 targetName ().
Returns the qualified name of the reference's target.
另请参阅 setTargetName ().
[since 6.7]
QVariant
QOpcUaRelativePathElement::
operator QVariant
() const
返回 QVariant containing this relative path element.
该函数在 Qt 6.7 引入。
Sets the values of rhs in this relative path element.
[noexcept, since 6.7]
bool
operator!=
(const
QOpcUaRelativePathElement
&
lhs
, const
QOpcUaRelativePathElement
&
rhs
)
返回
true
if
lhs
has a different value than
rhs
.
该函数在 Qt 6.7 引入。
[noexcept]
bool
operator==
(const
QOpcUaRelativePathElement
&
lhs
, const
QOpcUaRelativePathElement
&
rhs
)
返回
true
if
lhs
has the same value as
rhs
.