QOpcUaRelativePathElement Class
The OPC UA RelativePathElement. More...
Header: | #include <QOpcUaRelativePathElement> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
qmake: | QT += opcua |
Public Functions
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 |
(since 6.7) QVariant | operator QVariant() const |
QOpcUaRelativePathElement & | operator=(const QOpcUaRelativePathElement &rhs) |
Related Non-Members
(since 6.7) bool | operator!=(const QOpcUaRelativePathElement &lhs, const QOpcUaRelativePathElement &rhs) |
bool | operator==(const QOpcUaRelativePathElement &lhs, const QOpcUaRelativePathElement &rhs) |
Detailed Description
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().
Member Function Documentation
QOpcUaRelativePathElement::QOpcUaRelativePathElement()
Constructs a relative path element with both flags set to false
.
QOpcUaRelativePathElement::QOpcUaRelativePathElement(const QOpcUaQualifiedName &target, const QString &refType)
Constructs a relative path element with targetName target, reference type node id refType and both flags set to false
.
QOpcUaRelativePathElement::QOpcUaRelativePathElement(const QOpcUaQualifiedName &target, QOpcUa::ReferenceTypeId refType)
Constructs a relative path element with targetName target, QOpcUa::ReferenceTypeId refType and both flags set to false
.
QOpcUaRelativePathElement::QOpcUaRelativePathElement(const QOpcUaRelativePathElement &rhs)
Constructs a relative path element from rhs.
bool QOpcUaRelativePathElement::includeSubtypes() const
Returns the value of the includeSubtypes flag.
See also setIncludeSubtypes().
bool QOpcUaRelativePathElement::isInverse() const
Returns the value of the isInverse flag.
See also setIsInverse().
QString QOpcUaRelativePathElement::referenceTypeId() const
Returns the type id of the reference connecting this node to the previous node.
See also setReferenceTypeId().
void QOpcUaRelativePathElement::setIncludeSubtypes(bool includeSubtypes)
Sets the includeSubtypes flag to includeSubtypes. If the flag is true
, the lookup also follows references with subtypes of referenceTypeId().
See also includeSubtypes().
void QOpcUaRelativePathElement::setIsInverse(bool isInverse)
Sets the isInverse flag to isInverse. If the flag is true
, the lookup follows the reverse reference.
See also isInverse().
void QOpcUaRelativePathElement::setReferenceTypeId(const QString &referenceTypeId)
Sets the reference type id to referenceTypeId.
See also referenceTypeId().
void QOpcUaRelativePathElement::setReferenceTypeId(QOpcUa::ReferenceTypeId referenceTypeId)
Sets the reference type id to referenceTypeId.
void QOpcUaRelativePathElement::setTargetName(const QOpcUaQualifiedName &targetName)
Sets the target name to targetName, for example QOpcUaQualifiedName(0, "DataTypes").
See also targetName().
QOpcUaQualifiedName QOpcUaRelativePathElement::targetName() const
Returns the qualified name of the reference's target.
See also setTargetName().
[since 6.7]
QVariant QOpcUaRelativePathElement::operator QVariant() const
Returns a QVariant containing this relative path element.
This function was introduced in Qt 6.7.
QOpcUaRelativePathElement &QOpcUaRelativePathElement::operator=(const QOpcUaRelativePathElement &rhs)
Sets the values of rhs in this relative path element.
Related Non-Members
[noexcept, since 6.7]
bool operator!=(const QOpcUaRelativePathElement &lhs, const QOpcUaRelativePathElement &rhs)
Returns true
if lhs has a different value than rhs.
This function was introduced in Qt 6.7.
[noexcept]
bool operator==(const QOpcUaRelativePathElement &lhs, const QOpcUaRelativePathElement &rhs)
Returns true
if lhs has the same value as rhs.
© 2024 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.