QOpcUaLiteralOperand Class
Il tipo LiteralOperand di OPC UA. Maggiori informazioni...
| Intestazione: | #include <QOpcUaLiteralOperand> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
Funzioni pubbliche
| 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) |
Elementi non membri correlati
(since 6.7) bool | operator!=(const QOpcUaLiteralOperand &lhs, const QOpcUaLiteralOperand &rhs) |
(since 6.7) bool | operator==(const QOpcUaLiteralOperand &lhs, const QOpcUaLiteralOperand &rhs) |
Descrizione dettagliata
Il LiteralOperand è definito nella specifica OPC UA 1.05, parte 4, sezione 7.7.4.3. Contiene un valore letterale da utilizzare come operando.
Documentazione delle funzioni dei membri
QOpcUaLiteralOperand::QOpcUaLiteralOperand()
Il valore predefinito crea un operando letterale senza parametri specificati.
QOpcUaLiteralOperand::QOpcUaLiteralOperand(const QVariant &value, QOpcUa::Types type = QOpcUa::Types::Undefined)
Crea un operando letterale con valore value e tipo type.
QOpcUaLiteralOperand::QOpcUaLiteralOperand(const QOpcUaLiteralOperand &rhs)
Crea un operando letterale a partire da rhs.
void QOpcUaLiteralOperand::setType(QOpcUa::Types type)
Imposta il tipo del valore dell’operando letterale su “ type ”.
Vedi anche ` type()`.
void QOpcUaLiteralOperand::setValue(const QVariant &value)
Imposta il valore dell'operando letterale su value.
Vedi anche value().
QOpcUa::Types QOpcUaLiteralOperand::type() const
Restituisce il tipo del valore dell'operando letterale.
Vedi anche setType().
QVariant QOpcUaLiteralOperand::value() const
Restituisce il valore dell'operando letterale.
Vedi anche setValue().
QOpcUaLiteralOperand::operator QVariant() const
Converte questo operando letterale in QVariant.
QOpcUaLiteralOperand &QOpcUaLiteralOperand::operator=(const QOpcUaLiteralOperand &rhs)
Imposta i valori indicati su rhs in questa pagina QOpcUaLiteralOperand.
Correlati per i non iscritti
[noexcept, since 6.7] bool operator!=(const QOpcUaLiteralOperand &lhs, const QOpcUaLiteralOperand &rhs)
Restituisce ` true ` se ` lhs ` ha un valore diverso da ` rhs`.
Questa funzione è stata introdotta in Qt 6.7.
[noexcept, since 6.7] bool operator==(const QOpcUaLiteralOperand &lhs, const QOpcUaLiteralOperand &rhs)
Restituisce ` true ` se ` lhs ` ha lo stesso valore di ` rhs`.
Questa funzione è stata introdotta in 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.