Nesta página

QOpcUaLiteralOperand Class

O tipo LiteralOperand do OPC UA. Mais...

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

Funções públicas

QOpcUaLiteralOperand()
QOpcUaLiteralOperand(const QVariant &value, QOpcUa::Types type = QOpcUa::Types::Undefined)
QOpcUaLiteralOperand(const QOpcUaLiteralOperand &rhs)
void setType(QOpcUa::Types type)
void setValue(const QVariant &value)
QOpcUa::Types type() const
QVariant value() const
operator QVariant() const
QOpcUaLiteralOperand &operator=(const QOpcUaLiteralOperand &rhs)
(since 6.7) bool operator!=(const QOpcUaLiteralOperand &lhs, const QOpcUaLiteralOperand &rhs)
(since 6.7) bool operator==(const QOpcUaLiteralOperand &lhs, const QOpcUaLiteralOperand &rhs)

Descrição detalhada

O LiteralOperand é definido na norma OPC UA 1.05, parte 4, 7.7.4.3. Ele contém um valor literal a ser utilizado como operando.

Documentação da função de membro

QOpcUaLiteralOperand::QOpcUaLiteralOperand()

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

QOpcUaLiteralOperand::QOpcUaLiteralOperand(const QVariant &value, QOpcUa::Types type = QOpcUa::Types::Undefined)

Cria um operando literal com o valor value e o tipo type.

QOpcUaLiteralOperand::QOpcUaLiteralOperand(const QOpcUaLiteralOperand &rhs)

Cria um operando literal a partir de ` rhs`.

void QOpcUaLiteralOperand::setType(QOpcUa::Types type)

Define o tipo do valor do operando literal como ` type`.

Veja também type().

void QOpcUaLiteralOperand::setValue(const QVariant &value)

Define o valor do operando literal como value.

Veja também ` value()`.

QOpcUa::Types QOpcUaLiteralOperand::type() const

Retorna o tipo do valor do operando literal.

Veja também ` setType()`.

QVariant QOpcUaLiteralOperand::value() const

Retorna o valor do operando literal.

Veja também setValue().

QOpcUaLiteralOperand::operator QVariant() const

Converte este operando literal em um QVariant.

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

Define os valores de rhs nesta página QOpcUaLiteralOperand.

Relacionados (não membros)

[noexcept, since 6.7] bool operator!=(const QOpcUaLiteralOperand &lhs, const QOpcUaLiteralOperand &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 QOpcUaLiteralOperand &lhs, const QOpcUaLiteralOperand &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.