En esta página

QOpcUaSimpleAttributeOperand Class

El tipo SimpleAttributeOperand de OPC UA. Más...

Cabecera: #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 OPC UA 1.05 parte 4, 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 "Severidad" del tipo de evento base:

Documentación de la función miembro

QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand()

Default construye un operando de atributo simple sin parámetros establecidos.

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

Construye un operando de atributo simple para el atributo attributeId de un objeto o variable de tipo typeId. Puede utilizarse para solicitar el ConditionId en un filtro de eventos como se describe en OPC UA 1.05 parte 9, 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)

Construye 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 id de nodo de un nodo de definición de tipo. El operando se restringirá a instancias del tipo typeId o un subtipo.

QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand(const QOpcUaSimpleAttributeOperand &rhs)

Construye 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 a partir 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 del 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 índice utilizada para identificar un único valor o subconjunto del valor del atributo en indexRange.

Véase también indexRange().

void QOpcUaSimpleAttributeOperand::setTypeId(const QString &typeId)

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

Véase también typeId().

QString QOpcUaSimpleAttributeOperand::typeId() const

Devuelve el id de nodo 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.

No miembros relacionados

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

Devuelve true si lhs tiene un valor diferente 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.