QOpcUaEUInformation Class
OPC UAのEURange型。詳細...
| ヘッダー: | #include <QOpcUaEUInformation> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
パブリック関数
| QOpcUaEUInformation() | |
| QOpcUaEUInformation(const QString &namespaceUri, qint32 unitId, const QOpcUaLocalizedText &displayName, const QOpcUaLocalizedText &description) | |
| QOpcUaEUInformation(const QOpcUaEUInformation &rhs) | |
| QOpcUaLocalizedText | description() const |
| QOpcUaLocalizedText | displayName() const |
| QString | namespaceUri() const |
| void | setDescription(const QOpcUaLocalizedText &description) |
| void | setDisplayName(const QOpcUaLocalizedText &displayName) |
| void | setNamespaceUri(const QString &namespaceUri) |
| void | setUnitId(qint32 unitId) |
| qint32 | unitId() const |
| operator QVariant() const | |
| QOpcUaEUInformation & | operator=(const QOpcUaEUInformation &rhs) |
| bool | operator==(const QOpcUaEUInformation &rhs) const |
詳細な説明
これは、OPC UA 1.05 第8部 5.6.3で定義されているOPC UA EUInformation型のQt OPC UA による表現です。EUInformationの値には単位に関する情報が含まれており、主に数値属性を持つノードのプロパティとして使用されます。この情報は、例えばGUI要素にテキストやツールチップを追加するために使用できます。
メンバ関数のドキュメント
QOpcUaEUInformation::QOpcUaEUInformation()
デフォルトでは、パラメータが設定されていない EU 情報が生成されます。
QOpcUaEUInformation::QOpcUaEUInformation(const QString &namespaceUri, qint32 unitId, const QOpcUaLocalizedText &displayName, const QOpcUaLocalizedText &description)
名前空間 URI がnamespaceUri 、ユニット ID がunitId 、表示名がdisplayName 、説明がdescription である EUinformation オブジェクトを生成します。
QOpcUaEUInformation::QOpcUaEUInformation(const QOpcUaEUInformation &rhs)
rhs から EUinformation を生成します。
QOpcUaLocalizedText QOpcUaEUInformation::description() const
単位の説明(例:摂氏度)を返します。
setDescription()も参照してください 。
QOpcUaLocalizedText QOpcUaEUInformation::displayName() const
単位の表示名(例:°C)を返します。
setDisplayName()も参照してください 。
QString QOpcUaEUInformation::namespaceUri() const
ユニットの名前空間URIを返します。
setNamespaceUri()も参照してください 。
void QOpcUaEUInformation::setDescription(const QOpcUaLocalizedText &description)
ユニットの説明を「description 」に設定します。
description()も参照してください 。
void QOpcUaEUInformation::setDisplayName(const QOpcUaLocalizedText &displayName)
ユニットの表示名を「displayName 」に設定します。
displayName()も参照してください 。
void QOpcUaEUInformation::setNamespaceUri(const QString &namespaceUri)
ユニットの名前空間URIをnamespaceUri に設定します。
namespaceUri()も参照してください 。
void QOpcUaEUInformation::setUnitId(qint32 unitId)
このユニットの機械可読識別子を「unitId 」に設定します。
unitId()も参照してください 。
qint32 QOpcUaEUInformation::unitId() const
そのユニットの機械可読識別子を返します。
setUnitId()も参照してください 。
QOpcUaEUInformation::operator QVariant() const
このEU情報をQVariant に変換します。
QOpcUaEUInformation &QOpcUaEUInformation::operator=(const QOpcUaEUInformation &rhs)
この EUinformation において、rhs の値を設定します。
bool QOpcUaEUInformation::operator==(const QOpcUaEUInformation &rhs) const
この EUinformation の値がrhs と同じ場合、true を返します。
© 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.