Класс 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 определен в OPC-UA части 4, 7.4.4.5. Используется, когда в качестве операнда требуется атрибут узла.
Например, следующий простой операнд атрибута представляет значение поля "Severity" базового типа события:
QOpcUaSimpleAttributeOperand("Severity"); Документация по функциям-членам
QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand(QOpcUa::NodeAttribute attributeId, const QString &typeId = QStringLiteral("ns=0;i=2041"))
Создаёт простой операнд атрибута для атрибута attributeId объекта или переменной типа typeId. Может использоваться для запроса ConditionId в фильтре событий, как описано в OPC-UA части 9, Таблица 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.2/qopcuasimpleattributeoperand.html