The OPC UA QualifiedName type. 更多...
头: | #include <QOpcUaQualifiedName> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
qmake: | QT += opcua |
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 |
(since 6.3)
QDebug
|
operator<< (QDebug debug , const QOpcUaQualifiedName & name ) |
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.
Default constructs a qualified name with no parameters set.
Constructs a qualified name with namespace index namespaceIndex and the name name .
Constructs a qualified name from rhs .
Returns the name.
另请参阅 setName ().
Returns the namespace index.
另请参阅 setNamespaceIndex ().
Sets the name to name .
另请参阅 name ().
Sets the namespace index to namespaceIndex .
另请参阅 namespaceIndex ().
Converts this qualified name to QVariant .
设置值从 rhs in this qualified name.
返回
true
if this qualified name has the same value as
rhs
.
[since 6.3]
QDebug
operator<<
(
QDebug
debug
, const
QOpcUaQualifiedName
&
name
)
Writes the qualified name 到 debug output.
该函数在 Qt 6.3 引入。
另请参阅 QDebug .