QOpcUaSimpleAttributeOperand Class
OPC UA의 SimpleAttributeOperand 유형. 더 보기...
| 헤더: | #include <QOpcUaSimpleAttributeOperand> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
공개 함수
| QOpcUaSimpleAttributeOperand() | |
| QOpcUaSimpleAttributeOperand(QOpcUa::NodeAttribute attributeId, const QString &typeId = QStringLiteral("ns=0;i=2041")) | |
| QOpcUaSimpleAttributeOperand(const QString &name, quint16 namespaceIndex = 0, const QString &typeId = QStringLiteral("ns=0;i=2041"), QOpcUa::NodeAttribute attributeId = QOpcUa::NodeAttribute::Value) | |
| QOpcUaSimpleAttributeOperand(const QOpcUaSimpleAttributeOperand &rhs) | |
| QOpcUa::NodeAttribute | attributeId() const |
| QList<QOpcUaQualifiedName> | browsePath() const |
| QList<QOpcUaQualifiedName> & | browsePathRef() |
| QString | indexRange() const |
| void | setAttributeId(QOpcUa::NodeAttribute attributeId) |
| void | setBrowsePath(const QList<QOpcUaQualifiedName> &browsePath) |
| void | setIndexRange(const QString &indexRange) |
| void | setTypeId(const QString &typeId) |
| QString | typeId() const |
| operator QVariant() const | |
| QOpcUaSimpleAttributeOperand & | operator=(const QOpcUaSimpleAttributeOperand &rhs) |
관련 비멤버
(since 6.7) bool | operator!=(const QOpcUaSimpleAttributeOperand &lhs, const QOpcUaSimpleAttributeOperand &rhs) |
| bool | operator==(const QOpcUaSimpleAttributeOperand &lhs, const QOpcUaSimpleAttributeOperand &rhs) |
상세 설명
SimpleAttributeOperand는 OPC UA 1.05 파트 4, 7.7.4.5에 정의되어 있습니다. 이 연산자는 노드 속성이 연산자로 필요한 경우에 사용됩니다.
예를 들어, 다음의 단순 속성 피연산자는 기본 이벤트 유형의 "Severity" 필드 값을 나타냅니다.
QOpcUaSimpleAttributeOperand("Severity");멤버 함수 문서
QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand()
Default는 매개변수가 설정되지 않은 간단한 속성 피연산자를 생성합니다.
QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand(QOpcUa::NodeAttribute attributeId, const QString &typeId = QStringLiteral("ns=0;i=2041"))
typeId 유형의 객체 또는 변수에 대한 attributeId 속성에 대한 간단한 속성 피연산자를 생성합니다. 이는 OPC UA 1.05 파트 9, 5.5.2에 설명된 대로 이벤트 필터에서 ConditionId를 요청하는 데 사용할 수 있습니다.
QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand(const QString &name, quint16 namespaceIndex = 0, const QString &typeId = QStringLiteral("ns=0;i=2041"), QOpcUa::NodeAttribute attributeId = QOpcUa::NodeAttribute::Value)
네임스페이스 namespaceIndex 내의 브라우즈 이름이 name 인 직접 자식 노드에 대한 속성 attributeId 에 대한 간단한 속성 연산자를 생성합니다. typeId 는 유형 정의 노드의 노드 ID입니다. 이 연산자는 typeId 유형 또는 그 하위 유형의 인스턴스로만 제한됩니다.
QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand(const QOpcUaSimpleAttributeOperand &rhs)
rhs 에서 간단한 속성 피연산자를 생성합니다.
QOpcUa::NodeAttribute QOpcUaSimpleAttributeOperand::attributeId() const
browsePath 가 가리키는 노드의 속성을 반환합니다.
setAttributeId()도 참조하십시오 .
QList<QOpcUaQualifiedName> QOpcUaSimpleAttributeOperand::browsePath() const
typeId 를 기점으로 하는 노드의 상대 경로를 반환합니다.
setBrowsePath()도 참조하십시오 .
QList<QOpcUaQualifiedName> &QOpcUaSimpleAttributeOperand::browsePathRef()
브라우즈 경로에 대한 참조를 반환합니다.
browsePath()도 참조하십시오 .
QString QOpcUaSimpleAttributeOperand::indexRange() const
인덱스 범위 문자열을 반환합니다.
setIndexRange()도 참조하십시오 .
void QOpcUaSimpleAttributeOperand::setAttributeId(QOpcUa::NodeAttribute attributeId)
속성 id를 attributeId 로 설정합니다.
attributeId()도 참조하십시오 .
void QOpcUaSimpleAttributeOperand::setBrowsePath(const QList<QOpcUaQualifiedName> &browsePath)
해당 속성을 포함하는 노드의 탐색 경로를 browsePath 로 설정합니다.
browsePath()도 참조하십시오 .
void QOpcUaSimpleAttributeOperand::setIndexRange(const QString &indexRange)
속성 값 중 단일 값이나 하위 집합을 식별하는 데 사용되는 인덱스 범위 문자열을 indexRange 로 설정합니다.
indexRange()도 참조하십시오 .
void QOpcUaSimpleAttributeOperand::setTypeId(const QString &typeId)
유형 정의 노드의 노드 ID를 typeId 로 설정합니다. 피연산자는 해당 유형이거나 그 하위 유형 중 하나가 됩니다.
typeId()도 참조하십시오 .
QString QOpcUaSimpleAttributeOperand::typeId() const
유형 정의 노드의 노드 ID를 반환합니다.
setTypeId()도 참조하십시오 .
QOpcUaSimpleAttributeOperand::operator QVariant() const
이 간단한 속성 피연산자를 QVariant 로 변환합니다.
QOpcUaSimpleAttributeOperand &QOpcUaSimpleAttributeOperand::operator=(const QOpcUaSimpleAttributeOperand &rhs)
이 간단한 속성 피연산자에 rhs 의 값을 설정합니다.
관련 비회원
[noexcept, since 6.7] bool operator!=(const QOpcUaSimpleAttributeOperand &lhs, const QOpcUaSimpleAttributeOperand &rhs)
lhs 의 값이 rhs 와 다를 경우, true 를 반환합니다.
이 함수는 Qt 6.7에서 도입되었습니다.
[noexcept] bool operator==(const QOpcUaSimpleAttributeOperand &lhs, const QOpcUaSimpleAttributeOperand &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.