QOpcUaExpandedNodeId Class
OPC UA 확장 노드 ID. 더 보기...
헤더: | #include <QOpcUaExpandedNodeId> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
qmake: | QT += opcua |
공용 함수
QOpcUaExpandedNodeId() | |
QOpcUaExpandedNodeId(const QString &nodeId) | |
QOpcUaExpandedNodeId(const QString &namespaceUri, const QString &nodeId, quint32 serverIndex = 0) | |
QOpcUaExpandedNodeId(const QOpcUaExpandedNodeId &rhs) | |
QString | namespaceUri() const |
QString | nodeId() const |
quint32 | serverIndex() const |
void | setNamespaceUri(const QString &namespaceUri) |
void | setNodeId(const QString &nodeId) |
void | setServerIndex(quint32 serverIndex) |
QVariant | operator QVariant() const |
QOpcUaExpandedNodeId & | operator=(const QOpcUaExpandedNodeId &rhs) |
bool | operator==(const QOpcUaExpandedNodeId &rhs) const |
상세 설명
확장 노드 아이디는 네임스페이스 인덱스가 인덱스 또는 문자열 URI로 제공될 수 있는 노드 아이디입니다. 서버의 네임스페이스 및 해당 인덱스 목록은 QOpcUaClient::namespaceArray()에서 제공합니다.
멤버 함수 문서
QOpcUaExpandedNodeId::QOpcUaExpandedNodeId()
기본값은 파라미터가 설정되지 않은 확장된 노드 ID를 구성합니다.
QOpcUaExpandedNodeId::QOpcUaExpandedNodeId(const QString &nodeId)
노드 아이디 문자열 nodeId 에서 확장된 노드 아이디를 생성합니다.
QOpcUaExpandedNodeId::QOpcUaExpandedNodeId(const QString &namespaceUri, const QString &nodeId, quint32 serverIndex = 0)
네임스페이스 URI namespaceUri, 노드 아이디 문자열 nodeId 및 서버 인덱스 serverIndex 에서 확장된 노드 아이디를 생성합니다.
setServerIndex도 참조하세요 .
QOpcUaExpandedNodeId::QOpcUaExpandedNodeId(const QOpcUaExpandedNodeId &rhs)
rhs 에서 확장된 노드 ID를 생성합니다.
QString QOpcUaExpandedNodeId::namespaceUri() const
노드 아이디의 네임스페이스 URI를 반환합니다. 이 값을 지정하면 nodeId 의 네임스페이스 인덱스는 0이므로 무시해야 합니다.
setNamespaceUri()도 참조하세요 .
QString QOpcUaExpandedNodeId::nodeId() const
노드 아이디를 반환합니다. namespaceUri 을 지정하면 네임스페이스 인덱스가 유효하지 않습니다.
setNodeId()도 참조하세요 .
quint32 QOpcUaExpandedNodeId::serverIndex() const
노드가 포함된 서버의 인덱스를 반환합니다. 이 인덱스는 서버의 서버 테이블에 있는 항목에 매핑됩니다. 로컬 서버의 인덱스는 항상 0
입니다. 모든 원격 서버는 0
보다 큰 인덱스를 갖습니다.
setServerIndex()도 참조하세요 .
void QOpcUaExpandedNodeId::setNamespaceUri(const QString &namespaceUri)
네임스페이스 URI를 namespaceUri 로 설정합니다.
namespaceUri()도 참조하세요 .
void QOpcUaExpandedNodeId::setNodeId(const QString &nodeId)
노드 아이디를 nodeId 로 설정합니다.
nodeId()도 참조하세요 .
void QOpcUaExpandedNodeId::setServerIndex(quint32 serverIndex)
서버 인덱스를 serverIndex 로 설정합니다. 로컬 서버의 인덱스는 항상 0
입니다. 모든 원격 서버는 0
보다 큰 인덱스를 가집니다.
serverIndex()도 참조하세요 .
QVariant QOpcUaExpandedNodeId::operator QVariant() const
이 확장된 노드 ID를 QVariant 로 변환합니다.
QOpcUaExpandedNodeId &QOpcUaExpandedNodeId::operator=(const QOpcUaExpandedNodeId &rhs)
이 확장된 노드 ID에서 rhs 의 값을 설정합니다.
bool QOpcUaExpandedNodeId::operator==(const QOpcUaExpandedNodeId &rhs) const
이 확장 노드 ID가 rhs 과 같은 값이면 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.