In questa pagina

QOpcUaRelativePathElement Class

L'elemento RelativePathElement di OPC UA. Per saperne di più...

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

Funzioni pubbliche

QOpcUaRelativePathElement()
QOpcUaRelativePathElement(const QOpcUaQualifiedName &target, QOpcUa::ReferenceTypeId refType)
QOpcUaRelativePathElement(const QOpcUaQualifiedName &target, const QString &refType)
QOpcUaRelativePathElement(const QOpcUaRelativePathElement &rhs)
bool includeSubtypes() const
bool isInverse() const
QString referenceTypeId() const
void setIncludeSubtypes(bool includeSubtypes)
void setIsInverse(bool isInverse)
void setReferenceTypeId(QOpcUa::ReferenceTypeId referenceTypeId)
void setReferenceTypeId(const QString &referenceTypeId)
void setTargetName(const QOpcUaQualifiedName &targetName)
QOpcUaQualifiedName targetName() const
(since 6.7) operator QVariant() const
QOpcUaRelativePathElement &operator=(const QOpcUaRelativePathElement &rhs)
(since 6.7) bool operator!=(const QOpcUaRelativePathElement &lhs, const QOpcUaRelativePathElement &rhs)
bool operator==(const QOpcUaRelativePathElement &lhs, const QOpcUaRelativePathElement &rhs)

Descrizione dettagliata

QOpcUaRelativePathElement definisce un elemento di un percorso relativo su un server OPC UA. È necessario per la risoluzione dei percorsi di navigazione in ID di nodo nella funzione QOpcUaNode::resolveBrowsePath().

Documentazione delle funzioni membro

QOpcUaRelativePathElement::QOpcUaRelativePathElement()

Crea un elemento di percorso relativo con entrambi i flag impostati su " false".

QOpcUaRelativePathElement::QOpcUaRelativePathElement(const QOpcUaQualifiedName &target, QOpcUa::ReferenceTypeId refType)

Crea un elemento di percorso relativo con targetName target , QOpcUa::ReferenceTypeId refType e entrambi i flag impostati su false.

QOpcUaRelativePathElement::QOpcUaRelativePathElement(const QOpcUaQualifiedName &target, const QString &refType)

Crea un elemento di percorso relativo con targetName target , l'ID del nodo di tipo riferimento refType ed entrambi i flag impostati su false.

QOpcUaRelativePathElement::QOpcUaRelativePathElement(const QOpcUaRelativePathElement &rhs)

Crea un elemento di percorso relativo a partire da rhs.

bool QOpcUaRelativePathElement::includeSubtypes() const

Restituisce il valore del flag includeSubtypes.

Vedi anche setIncludeSubtypes().

bool QOpcUaRelativePathElement::isInverse() const

Restituisce il valore del flag isInverse.

Vedi anche setIsInverse().

QString QOpcUaRelativePathElement::referenceTypeId() const

Restituisce l'ID del tipo del riferimento che collega questo nodo al nodo precedente.

Vedi anche setReferenceTypeId().

void QOpcUaRelativePathElement::setIncludeSubtypes(bool includeSubtypes)

Imposta il flag “ includeSubtypes ” su “ includeSubtypes ”. Se il flag è “ true ”, la ricerca segue anche i riferimenti con sottotipi di “ referenceTypeId ”().

Vedi anche ` includeSubtypes()`.

void QOpcUaRelativePathElement::setIsInverse(bool isInverse)

Imposta il flag “ isInverse ” su “ isInverse ”. Se il flag è “ true ”, la ricerca segue il riferimento inverso.

Vedi anche isInverse().

void QOpcUaRelativePathElement::setReferenceTypeId(QOpcUa::ReferenceTypeId referenceTypeId)

Imposta l'ID del tipo di riferimento su referenceTypeId.

Vedi anche referenceTypeId().

void QOpcUaRelativePathElement::setReferenceTypeId(const QString &referenceTypeId)

Imposta l'ID del tipo di riferimento su referenceTypeId.

void QOpcUaRelativePathElement::setTargetName(const QOpcUaQualifiedName &targetName)

Imposta il nome di destinazione su targetName, ad esempio QOpcUaQualifiedName(0, "DataTypes").

Vedi anche targetName().

QOpcUaQualifiedName QOpcUaRelativePathElement::targetName() const

Restituisce il nome qualificato della destinazione del riferimento.

Vedi anche setTargetName().

[since 6.7] QOpcUaRelativePathElement::operator QVariant() const

Restituisce un oggetto ` QVariant ` contenente questo elemento del percorso relativo.

Questa funzione è stata introdotta in Qt 6.7.

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

Imposta i valori di " rhs " in questo elemento del percorso relativo.

Elementi non membri correlati

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

Restituisce ` true ` se ` lhs ` ha un valore diverso da ` rhs`.

Questa funzione è stata introdotta in Qt 6.7.

[noexcept] bool operator==(const QOpcUaRelativePathElement &lhs, const QOpcUaRelativePathElement &rhs)

Restituisce " true " se " lhs " ha lo stesso valore di " rhs".

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