QOpcUaDataValue Class

このクラスは、OPC UAの値データと関連するメタデータを格納します。詳細...

ヘッダ #include <QOpcUaDataValue>
このクラスは、OPC UA値データを格納します: find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua
以来:Qt 6.3

パブリック関数

QOpcUaDataValue()
QOpcUaDataValue(const QOpcUaDataValue &other)
~QOpcUaDataValue()
(since 6.7) quint16 serverPicoseconds() const
QDateTime serverTimestamp() const
(since 6.7) void setServerPicoseconds(quint16 serverPicoseconds)
void setServerTimestamp(const QDateTime &serverTimestamp)
(since 6.7) void setSourcePicoseconds(quint16 sourcePicoseconds)
void setSourceTimestamp(const QDateTime &sourceTimestamp)
void setStatusCode(QOpcUa::UaStatusCode statusCode)
void setValue(const QVariant &value)
(since 6.7) quint16 sourcePicoseconds() const
QDateTime sourceTimestamp() const
QOpcUa::UaStatusCode statusCode() const
void swap(QOpcUaDataValue &other)
QVariant value() const
(since 6.7) QVariant operator QVariant() const
QOpcUaDataValue &operator=(const QOpcUaDataValue &other)
(since 6.7) bool operator!=(const QOpcUaDataValue &lhs, const QOpcUaDataValue &rhs)
(since 6.7) bool operator==(const QOpcUaDataValue &lhs, const QOpcUaDataValue &rhs)

詳細説明

このクラスはOPC UA DataValue型に対応します。

メンバ関数ドキュメント

QOpcUaDataValue::QOpcUaDataValue()

無効なデータ値を構築します。

QOpcUaDataValue::QOpcUaDataValue(const QOpcUaDataValue &other)

other からデータ値を構築する。

[noexcept] QOpcUaDataValue::~QOpcUaDataValue()

データ値を破棄する。

[since 6.7] quint16 QOpcUaDataValue::serverPicoseconds() const

サーバーのタイムスタンプの 10 ピコ秒間隔の数を返します。

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

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

QDateTime QOpcUaDataValue::serverTimestamp() const

value() のサーバのタイムスタンプを返す。

setServerTimestamp()も参照

[since 6.7] void QOpcUaDataValue::setServerPicoseconds(quint16 serverPicoseconds)

サーバーのタイムスタンプの 10 ピコ秒間隔の数をserverPicoseconds に設定します。

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

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

void QOpcUaDataValue::setServerTimestamp(const QDateTime &serverTimestamp)

サーバのタイムスタンプをserverTimestamp に設定する。

serverTimestamp()も参照のこと

[since 6.7] void QOpcUaDataValue::setSourcePicoseconds(quint16 sourcePicoseconds)

ソースタイムスタンプの 10 ピコ秒間隔の数をsourcePicoseconds に設定します。

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

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

void QOpcUaDataValue::setSourceTimestamp(const QDateTime &sourceTimestamp)

送信元のタイムスタンプをsourceTimestamp に設定する。

sourceTimestamp()も参照のこと

void QOpcUaDataValue::setStatusCode(QOpcUa::UaStatusCode statusCode)

ステータスコードをstatusCode に設定する。

statusCode()も参照のこと

void QOpcUaDataValue::setValue(const QVariant &value)

値をvalue に設定する。

このデータ値をQOpcUaBinaryDataEncoding またはQOpcUaGenericStructHandler とともに使用する場合、値の型はQOpcUaVariant でなければならない。

value()も参照

[since 6.7] quint16 QOpcUaDataValue::sourcePicoseconds() const

ソースタイムスタンプの 10 ピコ秒間隔の数を返します。

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

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

QDateTime QOpcUaDataValue::sourceTimestamp() const

value() の送信元タイムスタンプを返す。

setSourceTimestamp()も参照

QOpcUa::UaStatusCode QOpcUaDataValue::statusCode() const

このデータ値のステータスコードを返す。ステータス・コードがGood でない場合、値とタイムスタンプは無効です。

setStatusCode()も参照のこと

[noexcept] void QOpcUaDataValue::swap(QOpcUaDataValue &other)

このデータ値インスタンスをother と交換する。この関数は非常に高速で、失敗することはない。

QVariant QOpcUaDataValue::value() const

値を返す。

setValue()も参照

[since 6.7] QVariant QOpcUaDataValue::operator QVariant() const

このデータ値を含むQVariant を返します。

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

QOpcUaDataValue &QOpcUaDataValue::operator=(const QOpcUaDataValue &other)

このデータ値にother からの値を設定する。

関連する非会員

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

lhsrhs と等しくない場合、true を返します。

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

[noexcept, since 6.7] bool operator==(const QOpcUaDataValue &lhs, const QOpcUaDataValue &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.