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 |
QVariant | 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()
기본값은 매개변수가 설정되지 않은 단순한 속성 피연산자를 구성합니다.
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()도 참조하세요 .
QVariant 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
을 반환합니다 .
© 2025 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.