QOpcUaXValue Class

OPC UA XVType。さらに...

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

パブリック関数

QOpcUaXValue()
QOpcUaXValue(double x, float value)
QOpcUaXValue(const QOpcUaXValue &rhs)
void setValue(float value)
void setX(double x)
float value() const
double x() const
QVariant operator QVariant() const
QOpcUaXValue &operator=(const QOpcUaXValue &rhs)
bool operator==(const QOpcUaXValue &rhs) const

詳細説明

これは、OPC UA 1.05 part 8, 5.6.8 で定義されている OPC UA XVType 型のQt OPC UA 表現です。この型は、倍精度の軸上に浮動小数点精度の値を配置するために使用されます。

メンバ関数ドキュメント

QOpcUaXValue::QOpcUaXValue()

Defaultは、パラメータが設定されていないXValueオブジェクトを構築する。

QOpcUaXValue::QOpcUaXValue(double x, float value)

位置x と値value を持つ XValue を構築する。

QOpcUaXValue::QOpcUaXValue(const QOpcUaXValue &rhs)

rhs から XValue を構築する。

void QOpcUaXValue::setValue(float value)

位置 x の値をvalue に設定する。

value()も参照のこと

void QOpcUaXValue::setX(double x)

軸上の値の位置をx に設定する。

x()も参照してください

float QOpcUaXValue::value() const

位置 x の値を返す。

setValue()も参照

double QOpcUaXValue::x() const

軸上の値の位置を返します。

setX()も参照してください

QVariant QOpcUaXValue::operator QVariant() const

この XValue をQVariant に変換する。

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

この XValue にrhs からの値を設定する。

bool QOpcUaXValue::operator==(const QOpcUaXValue &rhs) const

この XValue がrhs と同じ値を持つ場合、true を返す。

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