Nesta página

QOpcUaAttributeOperand Class

O tipo AttributeOperand do OPC UA. Mais...

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

Funções públicas

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

Descrição detalhada

O AttributeOperand é definido na norma OPC UA 1.05, parte 4, 7.7.4.4. Ele tem a mesma finalidade que um QOpcUaSimpleAttributeOperand, mas possui mais opções configuráveis.

Documentação da função de membro

QOpcUaAttributeOperand::QOpcUaAttributeOperand()

O `default` constrói um operando de atributo sem parâmetros definidos.

QOpcUaAttributeOperand::QOpcUaAttributeOperand(const QOpcUaAttributeOperand &rhs)

Cria um operando de atributo a partir de ` rhs`.

QString QOpcUaAttributeOperand::alias() const

Retorna o alias deste QAttributeOperand.

Veja também setAlias().

QOpcUa::NodeAttribute QOpcUaAttributeOperand::attributeId() const

Retorna o ID de um atributo do nó para o qual o link browsePath está apontando.

Veja também setAttributeId().

QList<QOpcUaRelativePathElement> QOpcUaAttributeOperand::browsePath() const

Retorna o caminho de navegação.

Veja também setBrowsePath().

QList<QOpcUaRelativePathElement> &QOpcUaAttributeOperand::browsePathRef()

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

Veja também browsePath().

QString QOpcUaAttributeOperand::indexRange() const

Retorna a string do intervalo de índices.

Veja também setIndexRange().

QString QOpcUaAttributeOperand::nodeId() const

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

Veja também setNodeId().

void QOpcUaAttributeOperand::setAlias(const QString &alias)

Define o alias como alias. Isso permite usar essa instância como operando para outras operações no filtro.

Veja também alias().

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

Define o atributo id como attributeId.

Veja também attributeId().

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

Define o caminho relativo para um nó, partindo de nodeId() para browsePath.

Veja também browsePath().

void QOpcUaAttributeOperand::setIndexRange(const QString &indexRange)

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

Veja também ` indexRange()`.

void QOpcUaAttributeOperand::setNodeId(const QString &nodeId)

Define o ID do nó da definição de tipo como nodeId.

Veja também nodeId().

QOpcUaAttributeOperand::operator QVariant() const

Converte este operando de atributo em um QVariant.

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

Define os valores de rhs neste operando de atributo.

Não-membros relacionados

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

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

Essa função foi introduzida no Qt 6.7.

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

Retorna ` true ` se ` lhs ` tiver o mesmo valor que ` rhs`.

Essa função foi introduzida no Qt 6.7.

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