Auf dieser Seite

QOpcUaLiteralOperand Class

Der OPC-UA-Typ „LiteralOperand“. Mehr...

Header: #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
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)

Detaillierte Beschreibung

Der LiteralOperand ist in OPC UA 1.05 Teil 4, 7.7.4.3 definiert. Er enthält einen Literalwert, der als Operand verwendet werden soll.

Dokumentation der Mitgliedsfunktion

QOpcUaLiteralOperand::QOpcUaLiteralOperand()

„default“ bildet einen Literaloperanden, für den keine Parameter festgelegt sind.

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

Erzeugt einen Literaloperanden mit dem Wert „ value “ und dem Typ „ type “.

QOpcUaLiteralOperand::QOpcUaLiteralOperand(const QOpcUaLiteralOperand &rhs)

Erstellt einen Literal-Operanden aus „ rhs “.

void QOpcUaLiteralOperand::setType(QOpcUa::Types type)

Legt den Typ des Werts des Literaloperanden auf „ type “ fest.

Siehe auch ` type()`.

void QOpcUaLiteralOperand::setValue(const QVariant &value)

Setzt den Wert des Literaloperanden auf „ value “.

Siehe auch ` value()`.

QOpcUa::Types QOpcUaLiteralOperand::type() const

Gibt den Typ des Werts des Literaloperanden zurück.

Siehe auch „ setType()“.

QVariant QOpcUaLiteralOperand::value() const

Gibt den Wert des Literaloperanden zurück.

Siehe auch „ setValue()“.

QOpcUaLiteralOperand::operator QVariant() const

Wandelt diesen Literal-Operanden in „ QVariant “ um.

QOpcUaLiteralOperand &QOpcUaLiteralOperand::operator=(const QOpcUaLiteralOperand &rhs)

Übernimmt die Werte von rhs in diese Datei: QOpcUaLiteralOperand.

Verwandte Themen für Nichtmitglieder

[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 “ denselben Wert wie „ rhs “ hat.

Diese Funktion wurde in Qt 6.7 eingeführt.

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