QOpcUaLiteralOperand Class

OPC UALiteralOperand タイプ。詳細...

ヘッダー #include <QOpcUaLiteralOperand>
CMake: find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua

パブリック関数

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)
(since 6.7) bool operator!=(const QOpcUaLiteralOperand &lhs, const QOpcUaLiteralOperand &rhs)
(since 6.7) bool operator==(const QOpcUaLiteralOperand &lhs, const QOpcUaLiteralOperand &rhs)

詳細説明

LiteralOperand は、OPC UA 1.05 part 4の7.7.4.3で定義されている。オペランドとして使用されるリテラル値が格納される。

メンバ関数ドキュメント

QOpcUaLiteralOperand::QOpcUaLiteralOperand()

Default は、パラメータが設定されていないリテラル・オペランドを構築します。

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

value 、型type のリテラル・オペランドを構築する。

QOpcUaLiteralOperand::QOpcUaLiteralOperand(const QOpcUaLiteralOperand &rhs)

rhs からリテラル・オペランドを構築します。

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

リテラル・オペランドの値の型をtype に設定します。

type()も参照のこと

void QOpcUaLiteralOperand::setValue(const QVariant &value)

リテラル・オペランドの値をvalue に設定する。

value()も参照のこと

QOpcUa::Types QOpcUaLiteralOperand::type() const

リテラル・オペランドの値の型を返します。

setType()も参照ください

QVariant QOpcUaLiteralOperand::value() const

リテラル・オペランドの値を返します。

setValue()も参照ください

QVariant QOpcUaLiteralOperand::operator QVariant() const

このリテラル・オペランドをQVariant に変換する。

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

このQOpcUaLiteralOperandrhs の値を設定する。

関連する非会員

[noexcept, since 6.7] bool operator!=(const QOpcUaLiteralOperand &lhs, const QOpcUaLiteralOperand &rhs)

lhsrhs と異なる値を持つ場合、true を返します。

この関数は Qt 6.7 で導入されました。

[noexcept, since 6.7] bool operator==(const QOpcUaLiteralOperand &lhs, const QOpcUaLiteralOperand &rhs)

lhsrhs と同じ値の場合、true を返します。

この関数は Qt 6.7 で導入されました。

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