QOpcUaArgument Class

OPC UA引数の型。詳細...

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

パブリック関数

QOpcUaArgument()
QOpcUaArgument(const QString &name, const QString &dataTypeId, qint32 valueRank, const QList<quint32> &arrayDimensions, const QOpcUaLocalizedText &description)
QList<quint32> arrayDimensions() const
QList<quint32> &arrayDimensionsRef()
QString dataTypeId() const
QOpcUaLocalizedText description() const
QString name() const
void setArrayDimensions(const QList<quint32> &arrayDimensions)
void setDataTypeId(const QString &dataTypeId)
void setDescription(const QOpcUaLocalizedText &description)
void setName(const QString &name)
void setValueRank(qint32 valueRank)
qint32 valueRank() const
QVariant operator QVariant() const
QOpcUaArgument &operator=(const QOpcUaArgument &rhs)
bool operator==(const QOpcUaArgument &other) const

詳細説明

これは、OPC UA 1.05 part 3, 8.6で定義されているArgument型のQt OPC UA

Argument型は、主にメソッドノードのパラメータと戻り値を記述するInputArgumentsとOutputArgumentsプロパティの値に使用されます。

メンバ関数ドキュメント

QOpcUaArgument::QOpcUaArgument()

デフォルトは、パラメータが設定されていない引数を構築する。

QOpcUaArgument::QOpcUaArgument(const QString &name, const QString &dataTypeId, qint32 valueRank, const QList<quint32> &arrayDimensions, const QOpcUaLocalizedText &description)

名前name 、データ型 iddataTypeId 、値ランクvalueRank 、配列寸法arrayDimensions 、説明description を持つ引数を構築する。

QList<quint32> QOpcUaArgument::arrayDimensions() const

引数の配列の次元を返す。

配列の各次元の長さを表します。

setArrayDimensions()も参照

QList<quint32> &QOpcUaArgument::arrayDimensionsRef()

引数の配列の次元への参照を返します。

QString QOpcUaArgument::dataTypeId() const

引数のデータ型ノード ID を返します。

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

QOpcUaLocalizedText QOpcUaArgument::description() const

引数の説明を返す。

setDescription()も参照

QString QOpcUaArgument::name() const

引数の名前を返す。

setName()も参照

void QOpcUaArgument::setArrayDimensions(const QList<quint32> &arrayDimensions)

引数の配列の次元をarrayDimensions に設定する。

arrayDimensions()も参照のこと

void QOpcUaArgument::setDataTypeId(const QString &dataTypeId)

引数のデータ型ノード ID をdataTypeId に設定する。

dataTypeId()も参照

void QOpcUaArgument::setDescription(const QOpcUaLocalizedText &description)

引数の説明をdescription に設定する。

description()も参照のこと

void QOpcUaArgument::setName(const QString &name)

引数の名前をname に設定する。

name()も参照のこと

void QOpcUaArgument::setValueRank(qint32 valueRank)

引数の値のランクをvalueRank に設定する。

valueRank()も参照のこと

qint32 QOpcUaArgument::valueRank() const

引数の値のランクを返す。値のランクは、値の構造を表します。

値ランク意味
-3スカラーまたは1次元配列
-2スカラーまたは任意の次元数の配列
-1配列ではない
0次元以上の配列
11次元の配列
>1n 次元の配列

setValueRank()も参照

QVariant QOpcUaArgument::operator QVariant() const

この引数をQVariant に変換する。

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

この引数にrhs の値を設定する。

bool QOpcUaArgument::operator==(const QOpcUaArgument &other) const

この引数がother と同じ値であれば真を返す。

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