QOpcUaLiteralOperand Class
El tipo «LiteralOperand» de OPC UA. Más información...
| 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) |
Elementos no miembros relacionados
(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
El LiteralOperand se define en OPC UA 1.05, parte 4, 7.7.4.3. Contiene un valor literal que se utilizará como operando.
Documentación de la función de miembro
QOpcUaLiteralOperand::QOpcUaLiteralOperand()
«Default» crea un operando literal sin parámetros definidos.
QOpcUaLiteralOperand::QOpcUaLiteralOperand(const QVariant &value, QOpcUa::Types type = QOpcUa::Types::Undefined)
Crea un operando literal con el valor « value » y el tipo « type ».
QOpcUaLiteralOperand::QOpcUaLiteralOperand(const QOpcUaLiteralOperand &rhs)
Crea un operando literal a partir de rhs.
void QOpcUaLiteralOperand::setType(QOpcUa::Types type)
Establece el tipo del valor del operando literal como « 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 en « QVariant ».
QOpcUaLiteralOperand &QOpcUaLiteralOperand::operator=(const QOpcUaLiteralOperand &rhs)
Establece los valores de rhs en esta página: QOpcUaLiteralOperand.
Relacionado: No socios
[noexcept, since 6.7] bool operator!=(const QOpcUaLiteralOperand &lhs, const QOpcUaLiteralOperand &rhs)
Devuelve ` true ` si ` lhs ` tiene un valor distinto 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.