The OPC UA SimpleAttributeOperand type. More...
Header: | #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 |
The SimpleAttributeOperand is specified in OPC-UA part 4, 7.4.4.5. It is used when a node attribute is required as operand.
For example, the following simple attribute operand represents the value of the "Severity" field of the base event type:
QOpcUaSimpleAttributeOperand("Severity");
Constructs a simple attribute operand for the attribute attributeId of an object or variable of type typeId. This can be used for requesting the ConditionId in an event filter as described in OPC-UA part 9, Table 8.
Constructs a simple attribute operand for attribute attributeId of the direct child with the browse name name in namespace namespaceIndex. typeId is the node id of a type definition node. The operand will be restricted to instances of type typeId or a subtype.
Constructs a simple attribute operand from rhs.
Sets the values from rhs in this simple attribute operand.
Returns the attribute of the node browsePath is pointing to.
See also setAttributeId().
Returns the relative path to a node starting from typeId.
See also setBrowsePath().
Returns a reference to the browse path.
See also browsePath().
Returns the index range string.
See also setIndexRange().
Sets the attribute id to attributeId.
See also attributeId().
Sets the browse path to the node holding the attribute to browsePath.
See also browsePath().
Sets the index range string used to identify a single value or subset of the attribute's value to indexRange.
See also indexRange().
Sets the node id of the type definition node to typeId. The operand will be of the type or one of its subtypes.
See also typeId().
Returns the node id of a type definition node.
See also setTypeId().
Converts this simple attribute operand to QVariant.
Returns true
if this simple attribute operand has the same value as rhs.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/qopcuasimpleattributeoperand.html