En esta página

QOpcUaLiteralOperand Class

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

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

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

Descripción detallada

LiteralOperand se define en OPC UA 1.05 parte 4, 7.7.4.3. Contiene un valor literal que debe utilizarse como operando.

Documentación de la función miembro

QOpcUaLiteralOperand::QOpcUaLiteralOperand()

Default construye un operando literal sin parámetros.

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

Construye un operando literal de valor value y tipo type.

QOpcUaLiteralOperand::QOpcUaLiteralOperand(const QOpcUaLiteralOperand &rhs)

Construye un operando literal a partir de rhs.

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

Establece el tipo del valor del operando literal a type.

Véase también type().

void QOpcUaLiteralOperand::setValue(const QVariant &value)

Establece el valor del operando literal en value.

Véase también value().

QOpcUa::Types QOpcUaLiteralOperand::type() const

Devuelve el tipo del valor del operando literal.

Véase también setType().

QVariant QOpcUaLiteralOperand::value() const

Devuelve el valor del operando literal.

Véase también setValue().

QOpcUaLiteralOperand::operator QVariant() const

Convierte este operando literal a QVariant.

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

Establece los valores de rhs en este QOpcUaLiteralOperand.

Relacionados No miembros

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

Devuelve true si lhs tiene un valor diferente de rhs.

Esta función se introdujo en Qt 6.7.

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

Devuelve true si lhs tiene el mismo valor que rhs.

Esta función se introdujo en 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.