QOpcUaRelativePathElement Class
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, QOpcUa::ReferenceTypeId refType) | |
| QOpcUaRelativePathElement(const QOpcUaQualifiedName &target, const QString &refType) | |
| QOpcUaRelativePathElement(const QOpcUaRelativePathElement &rhs) | |
| bool | includeSubtypes() const |
| bool | isInverse() const |
| QString | referenceTypeId() const |
| void | setIncludeSubtypes(bool includeSubtypes) |
| void | setIsInverse(bool isInverse) |
| void | setReferenceTypeId(QOpcUa::ReferenceTypeId referenceTypeId) |
| void | setReferenceTypeId(const QString &referenceTypeId) |
| void | setTargetName(const QOpcUaQualifiedName &targetName) |
| QOpcUaQualifiedName | targetName() const |
(since 6.7) | operator QVariant() const |
| QOpcUaRelativePathElement & | operator=(const QOpcUaRelativePathElement &rhs) |
関連する非メンバー
(since 6.7) bool | operator!=(const QOpcUaRelativePathElement &lhs, const QOpcUaRelativePathElement &rhs) |
| bool | operator==(const QOpcUaRelativePathElement &lhs, const QOpcUaRelativePathElement &rhs) |
詳細な説明
QOpcUaRelativePathElement は、OPC UA サーバー上の相対パスの要素を定義します。これは、QOpcUaNode::resolveBrowsePath() において、ブラウズパスをノード ID に解決するために必要です。
メンバー関数のドキュメント
QOpcUaRelativePathElement::QOpcUaRelativePathElement()
両方のフラグがfalse に設定された相対パス要素を作成します。
QOpcUaRelativePathElement::QOpcUaRelativePathElement(const QOpcUaQualifiedName &target, QOpcUa::ReferenceTypeId refType)
targetName 、target 、QOpcUa::ReferenceTypeId 、refType を使用し、両方のフラグをfalse に設定して、相対パス要素を構築します。
QOpcUaRelativePathElement::QOpcUaRelativePathElement(const QOpcUaQualifiedName &target, const QString &refType)
targetName target 、参照型ノードIDrefType を持ち、両方のフラグがfalse に設定された相対パス要素を構築します。
QOpcUaRelativePathElement::QOpcUaRelativePathElement(const QOpcUaRelativePathElement &rhs)
rhs から相対パス要素を生成します。
bool QOpcUaRelativePathElement::includeSubtypes() const
includeSubtypes フラグの値を返します。
setIncludeSubtypes()も参照してください 。
bool QOpcUaRelativePathElement::isInverse() const
isInverseフラグの値を返します。
setIsInverse()も参照してください 。
QString QOpcUaRelativePathElement::referenceTypeId() const
このノードと前のノードをつなぐ参照の型IDを返します。
setReferenceTypeId()も参照してください 。
void QOpcUaRelativePathElement::setIncludeSubtypes(bool includeSubtypes)
includeSubtypes フラグをincludeSubtypes に設定します。このフラグがtrue の場合、検索ではreferenceTypeId()のサブタイプを持つ参照も追跡されます。
includeSubtypes()も参照してください 。
void QOpcUaRelativePathElement::setIsInverse(bool isInverse)
isInverse フラグをisInverse に設定します。このフラグがtrue の場合、検索は逆参照に従って行われます。
isInverse()も参照してください 。
void QOpcUaRelativePathElement::setReferenceTypeId(QOpcUa::ReferenceTypeId referenceTypeId)
参照型 id をreferenceTypeId に設定します。
referenceTypeId()も参照してください 。
void QOpcUaRelativePathElement::setReferenceTypeId(const QString &referenceTypeId)
参照型のIDを「referenceTypeId 」に設定します。
void QOpcUaRelativePathElement::setTargetName(const QOpcUaQualifiedName &targetName)
ターゲット名をtargetName に設定します。例:QOpcUaQualifiedName(0, "DataTypes")。
targetName()も参照してください 。
QOpcUaQualifiedName QOpcUaRelativePathElement::targetName() const
参照の対象の修飾名を返します。
setTargetName()も参照してください 。
[since 6.7] QOpcUaRelativePathElement::operator QVariant() const
この相対パス要素を含むQVariant を返します。
この関数は Qt 6.7 で導入されました。
QOpcUaRelativePathElement &QOpcUaRelativePathElement::operator=(const QOpcUaRelativePathElement &rhs)
この相対パス要素内のrhs の値を設定します。
関連する非メンバー
[noexcept, since 6.7] bool operator!=(const QOpcUaRelativePathElement &lhs, const QOpcUaRelativePathElement &rhs)
lhs の値がrhs と異なる場合、true を返します。
この関数は Qt 6.7 で導入されました。
[noexcept] bool operator==(const QOpcUaRelativePathElement &lhs, const QOpcUaRelativePathElement &rhs)
lhs の値がrhs と同じ場合、true を返します。
© 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.