QOpcUaAttributeOperand Class

The OPC UA AttributeOperand type. More...

Header: #include <QOpcUaAttributeOperand>
CMake: find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua

Public Functions

QOpcUaAttributeOperand()
QOpcUaAttributeOperand(const QOpcUaAttributeOperand &rhs)
QString alias() const
QOpcUa::NodeAttribute attributeId() const
QList<QOpcUaRelativePathElement> browsePath() const
QList<QOpcUaRelativePathElement> &browsePathRef()
QString indexRange() const
QString nodeId() const
void setAlias(const QString &alias)
void setAttributeId(QOpcUa::NodeAttribute attributeId)
void setBrowsePath(const QList<QOpcUaRelativePathElement> &browsePath)
void setIndexRange(const QString &indexRange)
void setNodeId(const QString &nodeId)
QVariant operator QVariant() const
QOpcUaAttributeOperand &operator=(const QOpcUaAttributeOperand &rhs)
(since 6.7) bool operator!=(const QOpcUaAttributeOperand &lhs, const QOpcUaAttributeOperand &rhs)
(since 6.7) bool operator==(const QOpcUaAttributeOperand &lhs, const QOpcUaAttributeOperand &rhs)

Detailed Description

The AttributeOperand is defined in OPC UA 1.05 part 4, 7.7.4.4. It has the same purpose as QOpcUaSimpleAttributeOperand but has more configurable options.

Member Function Documentation

QOpcUaAttributeOperand::QOpcUaAttributeOperand()

Default constructs an attribute operand with no parameters set.

QOpcUaAttributeOperand::QOpcUaAttributeOperand(const QOpcUaAttributeOperand &rhs)

Constructs an attribute operand from rhs.

QString QOpcUaAttributeOperand::alias() const

Returns the alias for this QAttributeOperand.

See also setAlias().

QOpcUa::NodeAttribute QOpcUaAttributeOperand::attributeId() const

Returns the attribute id for an attribute of the node browsePath is pointing to.

See also setAttributeId().

QList<QOpcUaRelativePathElement> QOpcUaAttributeOperand::browsePath() const

Returns the browse path.

See also setBrowsePath().

QList<QOpcUaRelativePathElement> &QOpcUaAttributeOperand::browsePathRef()

Returns a reference to the browse path.

See also browsePath().

QString QOpcUaAttributeOperand::indexRange() const

Returns the index range string.

See also setIndexRange().

QString QOpcUaAttributeOperand::nodeId() const

Returns the node id of the type definition node.

See also setNodeId().

void QOpcUaAttributeOperand::setAlias(const QString &alias)

Sets the alias to alias. This allows using this instance as operand for other operations in the filter.

See also alias().

void QOpcUaAttributeOperand::setAttributeId(QOpcUa::NodeAttribute attributeId)

Sets the attribute id to attributeId.

See also attributeId().

void QOpcUaAttributeOperand::setBrowsePath(const QList<QOpcUaRelativePathElement> &browsePath)

Sets the relative path to a node starting from nodeId() to browsePath.

See also browsePath().

void QOpcUaAttributeOperand::setIndexRange(const QString &indexRange)

Sets the index range string used to identify a single value or subset of the attribute's value to indexRange.

See also indexRange().

void QOpcUaAttributeOperand::setNodeId(const QString &nodeId)

Sets the node id of the type definition node to nodeId.

See also nodeId().

QVariant QOpcUaAttributeOperand::operator QVariant() const

Converts this attribute operand to QVariant.

QOpcUaAttributeOperand &QOpcUaAttributeOperand::operator=(const QOpcUaAttributeOperand &rhs)

Sets the values from rhs in this attribute operand.

Related Non-Members

[noexcept, since 6.7] bool operator!=(const QOpcUaAttributeOperand &lhs, const QOpcUaAttributeOperand &rhs)

Returns true if lhs has a different value than rhs.

This function was introduced in Qt 6.7.

[noexcept, since 6.7] bool operator==(const QOpcUaAttributeOperand &lhs, const QOpcUaAttributeOperand &rhs)

Returns true if lhs has the same value as rhs.

This function was introduced in Qt 6.7.