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 |
| 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, 데이터 유형 id dataTypeId, 값 rank 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 | 하나 이상의 차원을 가진 배열 |
| 1 | 1차원 배열 |
| >1 | n차원 배열 |
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.