QOpcUaDataValue Class
이 클래스는 OPC UA 값 데이터 및 관련 메타데이터를 저장합니다. 더 보기...
Header: | #include <QOpcUaDataValue> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
qmake: | QT += opcua |
이후: | Qt 6.3 |
공용 함수
QOpcUaDataValue() | |
QOpcUaDataValue(const QOpcUaDataValue &other) | |
~QOpcUaDataValue() | |
(since 6.7) quint16 | serverPicoseconds() const |
QDateTime | serverTimestamp() const |
(since 6.7) void | setServerPicoseconds(quint16 serverPicoseconds) |
void | setServerTimestamp(const QDateTime &serverTimestamp) |
(since 6.7) void | setSourcePicoseconds(quint16 sourcePicoseconds) |
void | setSourceTimestamp(const QDateTime &sourceTimestamp) |
void | setStatusCode(QOpcUa::UaStatusCode statusCode) |
void | setValue(const QVariant &value) |
(since 6.7) quint16 | sourcePicoseconds() const |
QDateTime | sourceTimestamp() const |
QOpcUa::UaStatusCode | statusCode() const |
void | swap(QOpcUaDataValue &other) |
QVariant | value() const |
(since 6.7) QVariant | operator QVariant() const |
QOpcUaDataValue & | operator=(const QOpcUaDataValue &other) |
관련 비회원
(since 6.7) bool | operator!=(const QOpcUaDataValue &lhs, const QOpcUaDataValue &rhs) |
(since 6.7) bool | operator==(const QOpcUaDataValue &lhs, const QOpcUaDataValue &rhs) |
멤버 함수 문서
QOpcUaDataValue::QOpcUaDataValue()
잘못된 데이터 값을 생성합니다.
QOpcUaDataValue::QOpcUaDataValue(const QOpcUaDataValue &other)
other 에서 데이터 값을 생성합니다.
[noexcept]
QOpcUaDataValue::~QOpcUaDataValue()
데이터 값을 삭제합니다.
[since 6.7]
quint16 QOpcUaDataValue::serverPicoseconds() const
서버 타임스탬프에 대한 10피코초 간격의 수를 반환합니다.
이 함수는 Qt 6.7에 도입되었습니다.
setServerPicoseconds()도 참조하십시오 .
QDateTime QOpcUaDataValue::serverTimestamp() const
value()에 대한 서버 타임스탬프를 반환합니다.
setServerTimestamp()도 참조하세요 .
[since 6.7]
void QOpcUaDataValue::setServerPicoseconds(quint16 serverPicoseconds)
서버 타임스탬프의 10 피코초 간격 수를 serverPicoseconds 로 설정합니다.
이 함수는 Qt 6.7에 도입되었습니다.
serverPicoseconds()도 참조하십시오 .
void QOpcUaDataValue::setServerTimestamp(const QDateTime &serverTimestamp)
서버 타임스탬프를 serverTimestamp 로 설정합니다.
serverTimestamp()도 참조하세요 .
[since 6.7]
void QOpcUaDataValue::setSourcePicoseconds(quint16 sourcePicoseconds)
소스 타임스탬프의 10 피코초 간격 수를 sourcePicoseconds 로 설정합니다.
이 함수는 Qt 6.7에 도입되었습니다.
sourcePicoseconds()도 참조하십시오 .
void QOpcUaDataValue::setSourceTimestamp(const QDateTime &sourceTimestamp)
소스 타임스탬프를 sourceTimestamp 로 설정합니다.
sourceTimestamp()도 참조하세요 .
void QOpcUaDataValue::setStatusCode(QOpcUa::UaStatusCode statusCode)
상태 코드를 statusCode 로 설정합니다.
statusCode()도 참조하세요 .
void QOpcUaDataValue::setValue(const QVariant &value)
값을 value 로 설정합니다.
이 데이터 값을 QOpcUaBinaryDataEncoding 또는 QOpcUaGenericStructHandler 과 함께 사용하려면 값의 유형이 QOpcUaVariant 여야 합니다.
value()도 참조하세요 .
[since 6.7]
quint16 QOpcUaDataValue::sourcePicoseconds() const
소스 타임스탬프에 대한 10피코초 간격의 수를 반환합니다.
이 함수는 Qt 6.7에 도입되었습니다.
setSourcePicoseconds()도 참조하십시오 .
QDateTime QOpcUaDataValue::sourceTimestamp() const
value()의 소스 타임스탬프를 반환합니다.
setSourceTimestamp()도 참조하세요 .
QOpcUa::UaStatusCode QOpcUaDataValue::statusCode() const
이 데이터 값의 상태 코드를 반환합니다. 상태 코드가 Good 이 아닌 경우 값과 타임스탬프가 유효하지 않습니다.
setStatusCode()도 참조하세요 .
[noexcept]
void QOpcUaDataValue::swap(QOpcUaDataValue &other)
이 데이터 값 인스턴스를 other 로 바꿉니다. 이 함수는 매우 빠르며 실패하지 않습니다.
QVariant QOpcUaDataValue::value() const
값을 반환합니다.
setValue()도 참조하세요 .
[since 6.7]
QVariant QOpcUaDataValue::operator QVariant() const
이 데이터 값을 포함하는 QVariant 을 반환합니다.
이 함수는 Qt 6.7에 도입되었습니다.
QOpcUaDataValue &QOpcUaDataValue::operator=(const QOpcUaDataValue &other)
이 데이터 값에 other 의 값을 설정합니다.
관련 비회원
[noexcept, since 6.7]
bool operator!=(const QOpcUaDataValue &lhs, const QOpcUaDataValue &rhs)
lhs 이 rhs 과 같지 않으면 true
을 반환합니다.
이 함수는 Qt 6.7에 도입되었습니다.
[noexcept, since 6.7]
bool operator==(const QOpcUaDataValue &lhs, const QOpcUaDataValue &rhs)
lhs 이 rhs 과 같으면 true
을 반환합니다.
이 함수는 Qt 6.7에 도입되었습니다.
© 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.