QOpcUaLiteralOperand Class
OPC UA の LiteralOperand 型。詳細...
| ヘッダー: | #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 |
| 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) |
メンバー関数のドキュメント
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()も参照してください 。
QOpcUaLiteralOperand::operator QVariant() const
このリテラルオペランドをQVariant に変換します。
QOpcUaLiteralOperand &QOpcUaLiteralOperand::operator=(const QOpcUaLiteralOperand &rhs)
rhs の値を、このQOpcUaLiteralOperand に設定します。
関連する非会員
[noexcept, since 6.7] bool operator!=(const QOpcUaLiteralOperand &lhs, const QOpcUaLiteralOperand &rhs)
lhs の値がrhs と異なる場合、true を返します。
この関数は Qt 6.7 で導入されました。
[noexcept, since 6.7] bool operator==(const QOpcUaLiteralOperand &lhs, const QOpcUaLiteralOperand &rhs)
lhs の値がrhs と同じ場合、true を返します。
この関数は 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.