このページでは

QOpcUaEnumField Class

OPC UA の StructureDefinition 型。詳細...

ヘッダー: #include <QOpcUaEnumField>
CMake: find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua
以下のように: Qt 6.7

パブリック関数

QOpcUaEnumField()
QOpcUaEnumField(const QOpcUaEnumField &other)
QOpcUaEnumField(QOpcUaEnumField &&other)
~QOpcUaEnumField()
QOpcUaLocalizedText description() const
QOpcUaLocalizedText displayName() const
QString name() const
void setDescription(const QOpcUaLocalizedText &description)
void setDisplayName(const QOpcUaLocalizedText &displayName)
void setName(const QString &name)
void setValue(qint64 value)
void swap(QOpcUaEnumField &other)
qint64 value() const
operator QVariant() const
QOpcUaEnumField &operator=(QOpcUaEnumField &&other)
QOpcUaEnumField &operator=(const QOpcUaEnumField &rhs)
bool operator!=(const QOpcUaEnumField &lhs, const QOpcUaEnumField &rhs)
bool operator==(const QOpcUaEnumField &lhs, const QOpcUaEnumField &rhs)

詳細な説明

これは、OPC UAパート3で定義されているOPC UA EnumField型に対するQt OPC UA での表現です。これは、enum型のフィールドを記述します。

メンバー関数のドキュメント

QOpcUaEnumField::QOpcUaEnumField()

default は、パラメータが設定されていない列挙型フィールドを生成します。

QOpcUaEnumField::QOpcUaEnumField(const QOpcUaEnumField &other)

other から列挙型フィールドを生成します。

[constexpr noexcept default] QOpcUaEnumField::QOpcUaEnumField(QOpcUaEnumField &&other)

other から新しい列挙型フィールドをムーブコンストラクタで生成します。

注: 移動元のオブジェクト other は 、部分的に形成された状態になります。この状態では、破棄と新しい値の代入のみが有効な操作となります。

[noexcept] QOpcUaEnumField::~QOpcUaEnumField()

この列挙型定義オブジェクトを破棄します。

QOpcUaLocalizedText QOpcUaEnumField::description() const

列挙型フィールドの説明を返します。

setDescription()も参照してください 。

QOpcUaLocalizedText QOpcUaEnumField::displayName() const

列挙型フィールドの表示名を返します。

setDisplayName()も参照してください 。

QString QOpcUaEnumField::name() const

列挙型フィールドの名前を返します。

setName()も参照してください 。

void QOpcUaEnumField::setDescription(const QOpcUaLocalizedText &description)

列挙型フィールドの説明を「description 」に設定します。

description()も参照してください 。

void QOpcUaEnumField::setDisplayName(const QOpcUaLocalizedText &displayName)

列挙型フィールドの表示名を「displayName 」に設定します。

displayName()も参照してください 。

void QOpcUaEnumField::setName(const QString &name)

列挙型フィールドの名前を「name 」に設定します。

name()も参照してください 。

void QOpcUaEnumField::setValue(qint64 value)

enumフィールドの列挙型値をvalue に設定します。

value()も参照してください 。

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

other の列挙型フィールドオブジェクトを、この列挙型フィールドオブジェクトと入れ替えます。この操作は非常に高速で、失敗することはありません。

qint64 QOpcUaEnumField::value() const

列挙型フィールドの列挙値を返します。

setValue()も参照してください 。

QOpcUaEnumField::operator QVariant() const

この列挙型フィールドをQVariant に変換します。

[noexcept] QOpcUaEnumField &QOpcUaEnumField::operator=(QOpcUaEnumField &&other)

other をこのQOpcUaEnumField インスタンスに代入して移動します。

注: 移動元のオブジェクト other は 、部分的に形成された状態となり、この状態では破棄と新しい値の代入のみが有効な操作となります。

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

rhs の値を、この列挙型フィールドに設定します。

関連する非メンバー

[noexcept] bool operator!=(const QOpcUaEnumField &lhs, const QOpcUaEnumField &rhs)

lhs がrhs と等しくない場合、true を返します。

[noexcept] bool operator==(const QOpcUaEnumField &lhs, const QOpcUaEnumField &rhs)

lhs が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.