QOpcUaLiteralOperand Class
Le type « LiteralOperand » d'OPC UA. En savoir plus...
| En-tête : | #include <QOpcUaLiteralOperand> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake : | QT += opcua |
Fonctions publiques
| 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) |
Éléments non membres associés
(since 6.7) bool | operator!=(const QOpcUaLiteralOperand &lhs, const QOpcUaLiteralOperand &rhs) |
(since 6.7) bool | operator==(const QOpcUaLiteralOperand &lhs, const QOpcUaLiteralOperand &rhs) |
Description détaillée
L'opérande littéral (LiteralOperand) est défini dans la norme OPC UA 1.05, partie 4, section 7.7.4.3. Il contient une valeur littérale destinée à être utilisée comme opérande.
Documentation sur les fonctions des membres
QOpcUaLiteralOperand::QOpcUaLiteralOperand()
La valeur par défaut construit un opérande littéral sans aucun paramètre défini.
QOpcUaLiteralOperand::QOpcUaLiteralOperand(const QVariant &value, QOpcUa::Types type = QOpcUa::Types::Undefined)
Crée un opérande littéral de valeur « value » et de type « type ».
QOpcUaLiteralOperand::QOpcUaLiteralOperand(const QOpcUaLiteralOperand &rhs)
Crée un opérande littéral à partir de rhs.
void QOpcUaLiteralOperand::setType(QOpcUa::Types type)
Définit le type de la valeur de l'opérande littéral sur « type ».
Voir également type().
void QOpcUaLiteralOperand::setValue(const QVariant &value)
Définit la valeur de l'opérande littéral sur value.
Voir également value().
QOpcUa::Types QOpcUaLiteralOperand::type() const
Renvoie le type de la valeur de l'opérande littéral.
Voir aussi setType().
QVariant QOpcUaLiteralOperand::value() const
Renvoie la valeur de l'opérande littéral.
Voir aussi setValue().
QOpcUaLiteralOperand::operator QVariant() const
Convertit cet opérande littéral en « QVariant ».
QOpcUaLiteralOperand &QOpcUaLiteralOperand::operator=(const QOpcUaLiteralOperand &rhs)
Définit les valeurs provenant de rhs dans ce fichier QOpcUaLiteralOperand.
Contenu connexe pour les non-membres
[noexcept, since 6.7] bool operator!=(const QOpcUaLiteralOperand &lhs, const QOpcUaLiteralOperand &rhs)
Renvoie « true » si « lhs » a une valeur différente de « rhs ».
Cette fonction a été introduite dans Qt 6.7.
[noexcept, since 6.7] bool operator==(const QOpcUaLiteralOperand &lhs, const QOpcUaLiteralOperand &rhs)
Renvoie « true » si « lhs » a la même valeur que « rhs ».
Cette fonction a été introduite dans 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.