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 파트 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, 데이터 유형 id 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배열이 아님
0하나 이상의 차원이 있는 배열
11차원 배열
>1차원이 n개인 배열

setValueRank()도 참조하세요 .

QVariant QOpcUaArgument::operator QVariant() const

이 인수를 QVariant 로 변환합니다.

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

이 인수에 rhs 의 값을 설정합니다.

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

이 인수의 값이 other 와 같으면 true를 반환합니다.

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