Nesta página

QOpcUaSimpleAttributeOperand Class

O tipo SimpleAttributeOperand do OPC UA. Mais...

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

Funções 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)

Descrição detalhada

O SimpleAttributeOperand é especificado na norma OPC UA 1.05, parte 4, seção 7.7.4.5. Ele é utilizado quando um atributo de nó é necessário como operando.

Por exemplo, o seguinte operando de atributo simples representa o valor do campo “Severity” do tipo de evento base:

Documentação da função de membro

QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand()

O `default` cria um operando de atributo simples, sem parâmetros definidos.

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

Cria um operando de atributo simples para o atributo “ attributeId ” de um objeto ou variável do tipo “ typeId ”. Isso pode ser usado para solicitar o “ConditionId” em um filtro de eventos, conforme descrito na norma OPC UA 1.05, parte 9, seção 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)

Cria um operando de atributo simples para o atributo attributeId do filho direto com o nome de navegação name no espaço de nomes namespaceIndex. typeId é o ID do nó de uma definição de tipo. O operando será restrito a instâncias do tipo typeId ou de um subtipo.

QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand(const QOpcUaSimpleAttributeOperand &rhs)

Cria um operando de atributo simples a partir de rhs.

QOpcUa::NodeAttribute QOpcUaSimpleAttributeOperand::attributeId() const

Retorna o atributo do nó para o qual browsePath está apontando.

Veja também setAttributeId().

QList<QOpcUaQualifiedName> QOpcUaSimpleAttributeOperand::browsePath() const

Retorna o caminho relativo até um nó, partindo de typeId.

Veja também setBrowsePath().

QList<QOpcUaQualifiedName> &QOpcUaSimpleAttributeOperand::browsePathRef()

Retorna uma referência ao caminho de navegação.

Veja também browsePath().

QString QOpcUaSimpleAttributeOperand::indexRange() const

Retorna a string do intervalo de índices.

Veja também setIndexRange().

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

Define o atributo id como attributeId.

Veja também attributeId().

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

Define o caminho de navegação para o nó que contém o atributo como browsePath.

Veja também browsePath().

void QOpcUaSimpleAttributeOperand::setIndexRange(const QString &indexRange)

Define a string do intervalo de índices usada para identificar um único valor ou um subconjunto do valor do atributo como indexRange.

Veja também indexRange().

void QOpcUaSimpleAttributeOperand::setTypeId(const QString &typeId)

Define o ID do nó da definição de tipo como typeId. O operando será do tipo ou de um de seus subtipos.

Veja também ` typeId()`.

QString QOpcUaSimpleAttributeOperand::typeId() const

Retorna o ID do nó de uma definição de tipo.

Veja também setTypeId().

QOpcUaSimpleAttributeOperand::operator QVariant() const

Converte esse operando de atributo simples em ` QVariant`.

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

Define os valores de rhs neste operando de atributo simples.

Não-membros relacionados

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

Retorna ` true ` se ` lhs ` tiver um valor diferente de ` rhs`.

Essa função foi introduzida no Qt 6.7.

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

Retorna ` true ` se ` lhs ` tiver o mesmo 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.