이 페이지에서

QOpcUaLiteralOperand Class

OPC UA의 LiteralOperand 유형. 더 보기...

헤더: #include <QOpcUaLiteralOperand>
CMake: find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua

공개 함수

QOpcUaLiteralOperand()
QOpcUaLiteralOperand(const QVariant &value, QOpcUa::Types type = QOpcUa::Types::Undefined)
QOpcUaLiteralOperand(const QOpcUaLiteralOperand &rhs)
void setType(QOpcUa::Types type)
void setValue(const QVariant &value)
QOpcUa::Types type() const
QVariant value() const
operator QVariant() const
QOpcUaLiteralOperand &operator=(const QOpcUaLiteralOperand &rhs)
(since 6.7) bool operator!=(const QOpcUaLiteralOperand &lhs, const QOpcUaLiteralOperand &rhs)
(since 6.7) bool operator==(const QOpcUaLiteralOperand &lhs, const QOpcUaLiteralOperand &rhs)

상세 설명

LiteralOperand는 OPC UA 1.05 파트 4, 7.7.4.3에 정의되어 있습니다. 여기에는 피연산자로 사용될 리터럴 값이 포함됩니다.

멤버 함수 문서

QOpcUaLiteralOperand::QOpcUaLiteralOperand()

default는 매개변수가 설정되지 않은 리터럴 피연산자를 생성합니다.

QOpcUaLiteralOperand::QOpcUaLiteralOperand(const QVariant &value, QOpcUa::Types type = QOpcUa::Types::Undefined)

값이 value 이고 유형이 type 인 리터럴 피연산자를 생성합니다.

QOpcUaLiteralOperand::QOpcUaLiteralOperand(const QOpcUaLiteralOperand &rhs)

rhs 에서 리터럴 피연산자를 생성합니다.

void QOpcUaLiteralOperand::setType(QOpcUa::Types type)

리터럴 피연산자의 값 유형을 ` type`로 설정합니다.

type()도 참조하십시오 .

void QOpcUaLiteralOperand::setValue(const QVariant &value)

리터럴 피연산자의 값을 value 로 설정합니다.

value()도 참조하십시오 .

QOpcUa::Types QOpcUaLiteralOperand::type() const

리터럴 피연산자의 값이 어떤 유형인지 반환합니다.

setType()도 참조하십시오 .

QVariant QOpcUaLiteralOperand::value() const

리터럴 피연산자의 값을 반환합니다.

setValue()도 참조하십시오 .

QOpcUaLiteralOperand::operator QVariant() const

이 리터럴 피연산자를 ` QVariant`로 변환합니다.

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

이 QOpcUaLiteralOperand 페이지에서 rhs 의 값을 설정합니다.

관련 비회원

[noexcept, since 6.7] bool operator!=(const QOpcUaLiteralOperand &lhs, const QOpcUaLiteralOperand &rhs)

lhs 의 값이 rhs 과 다를 경우 true 을 반환합니다.

이 함수는 Qt 6.7에서 도입되었습니다.

[noexcept, since 6.7] bool operator==(const QOpcUaLiteralOperand &lhs, const QOpcUaLiteralOperand &rhs)

lhs 의 값이 rhs 와 동일할 경우, true 를 반환합니다.

이 함수는 Qt 6.7에서 도입되었습니다.

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