QRelativePathElement Class

(QOpcUa::QRelativePathElement)

The OPC UA RelativePathElement. More...

Header: #include <QtOpcUa/qopcuatype.h>
qmake: QT += opcua

Public Functions

QRelativePathElement()
QRelativePathElement(const QOpcUa::QQualifiedName &target, const QString &refType)
QRelativePathElement(const QOpcUa::QQualifiedName &target, QOpcUa::ReferenceTypeId refType)
QRelativePathElement(const QOpcUa::QRelativePathElement &rhs)
~QRelativePathElement()
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 QOpcUa::QQualifiedName &targetName)
QOpcUa::QQualifiedName targetName() const
QOpcUa::QRelativePathElement &operator=(const QOpcUa::QRelativePathElement &rhs)
bool operator==(const QOpcUa::QRelativePathElement &rhs) const

Detailed Description

The OPC UA RelativePathElement.

QRelativePathElement 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

QRelativePathElement::QRelativePathElement()

Constructs a relative path element with both flags set to false.

QRelativePathElement::QRelativePathElement(const QOpcUa::QQualifiedName &target, const QString &refType)

Constructs a relative path element with targetName target, reference type node id refType and both flags set to false.

QRelativePathElement::QRelativePathElement(const QOpcUa::QQualifiedName &target, QOpcUa::ReferenceTypeId refType)

Constructs a relative path element with targetName target, QOpcUa::ReferenceTypeId refType and both flags set to false.

QRelativePathElement::QRelativePathElement(const QOpcUa::QRelativePathElement &rhs)

Constructs a relative path element from rhs.

QRelativePathElement::~QRelativePathElement()

Destroys the instance of QRelativePathElement.

bool QRelativePathElement::includeSubtypes() const

Returns the value of the includeSubtypes flag.

See also setIncludeSubtypes().

bool QRelativePathElement::isInverse() const

Returns the value of the isInverse flag.

See also setIsInverse().

QString QRelativePathElement::referenceTypeId() const

Returns the type id of the reference connecting this node to the previous node.

See also setReferenceTypeId().

void QRelativePathElement::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 QRelativePathElement::setIsInverse(bool isInverse)

Sets the isInverse flag to isInverse. If the flag is true, the lookup follows the reverse reference.

See also isInverse().

void QRelativePathElement::setReferenceTypeId(const QString &referenceTypeId)

Sets the reference type id to referenceTypeId.

See also referenceTypeId().

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

Sets the reference type id to referenceTypeId.

void QRelativePathElement::setTargetName(const QOpcUa::QQualifiedName &targetName)

Sets the target name to targetName, for example QOpcUa::QQualifiedName(0, "DataTypes").

See also targetName().

QOpcUa::QQualifiedName QRelativePathElement::targetName() const

Returns the qualified name of the reference's target.

See also setTargetName().

QOpcUa::QRelativePathElement &QRelativePathElement::operator=(const QOpcUa::QRelativePathElement &rhs)

Sets the values of rhs in this relative path element.

bool QRelativePathElement::operator==(const QOpcUa::QRelativePathElement &rhs) const

Returns true if this relative path element has the same value as rhs.

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