Sur cette page

QOpcUaLiteralOperand Class

Le type OPC UA LiteralOperand. Plus d'informations...

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

Le paramètre LiteralOperand est défini dans OPC UA 1.05, partie 4, 7.7.4.3. Elle contient une valeur littérale qui doit être utilisée comme opérande.

Documentation des fonctions membres

QOpcUaLiteralOperand::QOpcUaLiteralOperand()

Par défaut, un opérande littéral est construit sans aucun paramètre défini.

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

Construit un opérande littéral de valeur value et de type type.

QOpcUaLiteralOperand::QOpcUaLiteralOperand(const QOpcUaLiteralOperand &rhs)

Construit 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 à type.

Voir également type().

void QOpcUaLiteralOperand::setValue(const QVariant &value)

Fixe la valeur de l'opérande littéral à value.

Voir aussi 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 de rhs dans ce QOpcUaLiteralOperand.

Non-membres apparentés

[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.