このページでは

QOpcUaArgument Class

OPC UA の Argument 型。詳細...

ヘッダー: #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
operator QVariant() const
QOpcUaArgument &operator=(const QOpcUaArgument &rhs)
bool operator==(const QOpcUaArgument &other) const

詳細な説明

これは、OPC UA 1.05 第3部 8.6で定義されているArgument型に対するQt OPC UA での表現です。

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

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

QOpcUaArgument::QOpcUaArgument()

default は、引数が設定されていない引数を生成します。

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

名前が `name`、データ型が `dataTypeId`、ランクが `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

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

ValueRank意味
-3スカラーまたは1次元配列
-2スカラーまたは任意の次元数を持つ配列
-1配列ではない
01つ以上の次元を持つ配列
11次元配列
>1n次元配列

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

QOpcUaArgument::operator QVariant() const

この引数をQVariant に変換します。

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

この引数に、rhs の値を設定します。

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

この引数が `other` と同じ値を持つ場合、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.