QOpcUaLiteralOperand Class
Der OPC UA LiteralOperand Typ. Mehr...
Kopfzeile: | #include <QOpcUaLiteralOperand> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
qmake: | QT += opcua |
Öffentliche Funktionen
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 |
QVariant | operator QVariant() const |
QOpcUaLiteralOperand & | operator=(const QOpcUaLiteralOperand &rhs) |
Verwandte Nicht-Mitglieder
(since 6.7) bool | operator!=(const QOpcUaLiteralOperand &lhs, const QOpcUaLiteralOperand &rhs) |
(since 6.7) bool | operator==(const QOpcUaLiteralOperand &lhs, const QOpcUaLiteralOperand &rhs) |
Detaillierte Beschreibung
Die LiteralOperand ist in OPC UA 1.05 Teil 4, 7.7.4.3 definiert. Sie enthält einen literalen Wert, der als Operand zu verwenden ist.
Dokumentation der Mitgliedsfunktionen
QOpcUaLiteralOperand::QOpcUaLiteralOperand()
Standard konstruiert einen literalen Operanden ohne Parameter.
QOpcUaLiteralOperand::QOpcUaLiteralOperand(const QVariant &value, QOpcUa::Types type = QOpcUa::Types::Undefined)
Konstruiert einen literalen Operanden mit dem Wert value und dem Typ type.
QOpcUaLiteralOperand::QOpcUaLiteralOperand(const QOpcUaLiteralOperand &rhs)
Konstruiert einen literalen Operanden aus rhs.
void QOpcUaLiteralOperand::setType(QOpcUa::Types type)
Setzt den Typ des Wertes des Literal-Operanden auf type.
Siehe auch type().
void QOpcUaLiteralOperand::setValue(const QVariant &value)
Setzt den Wert des Literal-Operanden auf value.
Siehe auch value().
QOpcUa::Types QOpcUaLiteralOperand::type() const
Gibt den Typ des Wertes des Literal-Operanden zurück.
Siehe auch setType().
QVariant QOpcUaLiteralOperand::value() const
Gibt den Wert des Literal-Operanden zurück.
Siehe auch setValue().
QVariant QOpcUaLiteralOperand::operator QVariant() const
Wandelt diesen literalen Operanden in QVariant um.
QOpcUaLiteralOperand &QOpcUaLiteralOperand::operator=(const QOpcUaLiteralOperand &rhs)
Legt die Werte von rhs in diesem QOpcUaLiteralOperand fest.
Verwandte Nicht-Mitglieder
[noexcept, since 6.7]
bool operator!=(const QOpcUaLiteralOperand &lhs, const QOpcUaLiteralOperand &rhs)
Gibt true
zurück, wenn lhs einen anderen Wert als rhs hat.
Diese Funktion wurde in Qt 6.7 eingeführt.
[noexcept, since 6.7]
bool operator==(const QOpcUaLiteralOperand &lhs, const QOpcUaLiteralOperand &rhs)
Gibt true
zurück, wenn lhs den gleichen Wert wie rhs hat.
Diese Funktion wurde in Qt 6.7 eingeführt.
© 2025 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.