QOpcUaQualifiedName Class
The OPC UA QualifiedName type. More...
Header: | #include <QOpcUaQualifiedName> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
qmake: | QT += opcua |
Public Functions
QOpcUaQualifiedName() | |
QOpcUaQualifiedName(quint16 namespaceIndex, const QString &name) | |
QOpcUaQualifiedName(const QOpcUaQualifiedName &rhs) | |
QString | name() const |
quint16 | namespaceIndex() const |
void | setName(const QString &name) |
void | setNamespaceIndex(quint16 namespaceIndex) |
QVariant | operator QVariant() const |
QOpcUaQualifiedName & | operator=(const QOpcUaQualifiedName &rhs) |
bool | operator==(const QOpcUaQualifiedName &rhs) const |
Related Non-Members
(since 6.3) QDebug | operator<<(QDebug debug, const QOpcUaQualifiedName &name) |
Detailed Description
This is the Qt OPC UA representation for the OPC UA QualifiedName type defined in OPC UA 1.05 part 3, 8.3. A QualifiedName is a name qualified by a namespace index. The namespace index corresponds to an entry in the server's namespace array. QualifiedName is mainly used to represent the BrowseName attribute of a node.
Member Function Documentation
QOpcUaQualifiedName::QOpcUaQualifiedName()
Default constructs a qualified name with no parameters set.
QOpcUaQualifiedName::QOpcUaQualifiedName(quint16 namespaceIndex, const QString &name)
Constructs a qualified name with namespace index namespaceIndex and the name name.
QOpcUaQualifiedName::QOpcUaQualifiedName(const QOpcUaQualifiedName &rhs)
Constructs a qualified name from rhs.
QString QOpcUaQualifiedName::name() const
Returns the name.
See also setName().
quint16 QOpcUaQualifiedName::namespaceIndex() const
Returns the namespace index.
See also setNamespaceIndex().
void QOpcUaQualifiedName::setName(const QString &name)
Sets the name to name.
See also name().
void QOpcUaQualifiedName::setNamespaceIndex(quint16 namespaceIndex)
Sets the namespace index to namespaceIndex.
See also namespaceIndex().
QVariant QOpcUaQualifiedName::operator QVariant() const
Converts this qualified name to QVariant.
QOpcUaQualifiedName &QOpcUaQualifiedName::operator=(const QOpcUaQualifiedName &rhs)
Sets the values from rhs in this qualified name.
bool QOpcUaQualifiedName::operator==(const QOpcUaQualifiedName &rhs) const
Returns true
if this qualified name has the same value as rhs.
Related Non-Members
[since 6.3]
QDebug operator<<(QDebug debug, const QOpcUaQualifiedName &name)
Writes the qualified name to the debug output.
This function was introduced in Qt 6.3.
See also QDebug.