En esta página

QOpcUaSimpleAttributeOperand Class

El tipo «SimpleAttributeOperand» de OPC UA. Más información...

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

Funciones públicas

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
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)

Descripción detallada

El SimpleAttributeOperand se especifica en la norma OPC UA 1.05, parte 4, apartado 7.7.4.5. Se utiliza cuando se requiere un atributo de nodo como operando.

Por ejemplo, el siguiente operando de atributo simple representa el valor del campo «Severity» del tipo de evento base:

Documentación de la función de miembro

QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand()

«Default» crea un operando de atributo simple sin parámetros definidos.

QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand(QOpcUa::NodeAttribute attributeId, const QString &typeId = QStringLiteral("ns=0;i=2041"))

Crea un operando de atributo sencillo para el atributo « attributeId » de un objeto o una variable de tipo « typeId ». Se puede utilizar para solicitar el «ConditionId» en un filtro de eventos, tal y como se describe en la norma OPC UA 1.05, parte 9, apartado 5.5.2.

QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand(const QString &name, quint16 namespaceIndex = 0, const QString &typeId = QStringLiteral("ns=0;i=2041"), QOpcUa::NodeAttribute attributeId = QOpcUa::NodeAttribute::Value)

Crea un operando de atributo simple para el atributo « attributeId » del hijo directo con el nombre de exploración « name » en el espacio de nombres « namespaceIndex ». « typeId » es el identificador de un nodo de definición de tipo. El operando se limitará a instancias del tipo « typeId » o de un subtipo.

QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand(const QOpcUaSimpleAttributeOperand &rhs)

Crea un operando de atributo simple a partir de rhs.

QOpcUa::NodeAttribute QOpcUaSimpleAttributeOperand::attributeId() const

Devuelve el atributo del nodo al que apunta ` browsePath `.

Véase también setAttributeId().

QList<QOpcUaQualifiedName> QOpcUaSimpleAttributeOperand::browsePath() const

Devuelve la ruta relativa a un nodo partiendo de typeId.

Véase también setBrowsePath().

QList<QOpcUaQualifiedName> &QOpcUaSimpleAttributeOperand::browsePathRef()

Devuelve una referencia a la ruta de navegación.

Véase también browsePath().

QString QOpcUaSimpleAttributeOperand::indexRange() const

Devuelve la cadena que representa el rango de índices.

Véase también setIndexRange().

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

Establece el atributo «id» en « attributeId ».

Véase también attributeId().

void QOpcUaSimpleAttributeOperand::setBrowsePath(const QList<QOpcUaQualifiedName> &browsePath)

Establece la ruta de navegación al nodo que contiene el atributo en browsePath.

Véase también browsePath().

void QOpcUaSimpleAttributeOperand::setIndexRange(const QString &indexRange)

Establece la cadena de rango de índices utilizada para identificar un valor concreto o un subconjunto del valor del atributo en indexRange.

Véase también indexRange().

void QOpcUaSimpleAttributeOperand::setTypeId(const QString &typeId)

Establece el identificador del nodo de definición de tipo en typeId. El operando será de ese tipo o de uno de sus subtipos.

Véase también typeId().

QString QOpcUaSimpleAttributeOperand::typeId() const

Devuelve el identificador de un nodo de definición de tipo.

Véase también setTypeId().

QOpcUaSimpleAttributeOperand::operator QVariant() const

Convierte este operando de atributo simple en « QVariant ».

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

Establece los valores de rhs en este operando de atributo simple.

Elementos no miembros relacionados

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

Devuelve ` true ` si ` lhs ` tiene un valor diferente al de ` rhs`.

Esta función se introdujo en Qt 6.7.

[noexcept] bool operator==(const QOpcUaSimpleAttributeOperand &lhs, const QOpcUaSimpleAttributeOperand &rhs)

Devuelve « true » si « lhs » tiene el mismo valor que « rhs ».

© 2026 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.