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 를 가진 상대 경로 요소를 생성하며, 참조 유형 노드 ID는 refType 이고, 두 플래그 모두 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.