Класс QOpcUaSimpleAttributeOperand
Тип OPC UA SimpleAttributeOperand. Подробнее...
| Заголовок: | #include <QOpcUaSimpleAttributeOperand> |
| qmake: | QT += opcua |
Открытые функции
| 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) | |
| QOpcUaSimpleAttributeOperand & | operator=(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 |
| bool | operator==(const QOpcUaSimpleAttributeOperand &rhs) const |
Подробное описание
Тип SimpleAttributeOperand указан в части 4 OPC-UA, 7.4.4.5. Он используется, когда в качестве операнда требуется атрибут узла.
Например, следующий простой операнд атрибута представляет значение поля «Severity» типа базового события:
QOpcUaSimpleAttributeOperand("Severity"); Документация по функциям-членам
QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand(QOpcUa::NodeAttribute attributeId, const QString &typeId = QStringLiteral("ns=0;i=2041"))
Создаёт простой операнд атрибута для атрибута attributeId объекта или переменной типа typeId. Это можно использовать для запроса ConditionId в фильтре событий, как описано в части 9 OPC-UA, таблица 8.
QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand(const QString &name, quint16 namespaceIndex = 0, const QString &typeId = QStringLiteral("ns=0;i=2041"), QOpcUa::NodeAttribute attributeId = QOpcUa::NodeAttribute::Value)
Создаёт простой операнд атрибута для атрибута attributeId непосредственного дочернего элемента с именем поиска name в пространстве имён namespaceIndex. typeId — идентификатор узла определения типа. Операнд будет ограничен экземплярами типа typeId или его подтипами.
QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand(const QOpcUaSimpleAttributeOperand &rhs)
Создаёт простой операнд атрибута из rhs.
QOpcUaSimpleAttributeOperand &QOpcUaSimpleAttributeOperand::operator=(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)
Устанавливает идентификатор атрибута в 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)
Устанавливает идентификатор узла определения типа в typeId. Операнд будет иметь тип или один из его подтипов.
См. также typeId().
QString QOpcUaSimpleAttributeOperand::typeId() const
Возвращает идентификатор узла определения типа.
См. также setTypeId().
QVariant QOpcUaSimpleAttributeOperand::operator QVariant() const
Преобразует этот простой операнд атрибута в QVariant.
bool QOpcUaSimpleAttributeOperand::operator==(const QOpcUaSimpleAttributeOperand &rhs) const
Возвращает true , если этот простой операнд атрибута имеет такое же значение, как rhs.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.1/qopcuasimpleattributeoperand.html