QOpcUaEUInformation Class

The OPC UA EURange type. 更多...

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

公共函數

QOpcUaEUInformation ()
QOpcUaEUInformation (const QString & namespaceUri , qint32 unitId , const QOpcUaLocalizedText & displayName , const QOpcUaLocalizedText & 描述 )
QOpcUaEUInformation (const QOpcUaEUInformation & rhs )
QOpcUaLocalizedText description () const
QOpcUaLocalizedText displayName () const
QString namespaceUri () const
void setDescription (const QOpcUaLocalizedText & 描述 )
void setDisplayName (const QOpcUaLocalizedText & displayName )
void setNamespaceUri (const QString & namespaceUri )
void setUnitId (qint32 unitId )
qint32 unitId () const
QVariant operator QVariant () const
QOpcUaEUInformation & operator= (const QOpcUaEUInformation & rhs )
bool operator== (const QOpcUaEUInformation & rhs ) const

詳細描述

This is the Qt OPC UA representation for the OPC UA EUInformation type defined in OPC UA 1.05 part 8, 5.6.3. EUInformation values contain information about units and are mostly used as property of a node with a numeric value attribute. The information can e. g. be used to add text and tooltips to GUI elements.

成員函數文檔編製

QOpcUaEUInformation:: QOpcUaEUInformation ()

Default constructs an EU information with no parameters set.

QOpcUaEUInformation:: QOpcUaEUInformation (const QString & namespaceUri , qint32 unitId , const QOpcUaLocalizedText & displayName , const QOpcUaLocalizedText & 描述 )

Constructs a EUinformation with namespace URI namespaceUri , unit id unitId , display name displayName and description description .

QOpcUaEUInformation:: QOpcUaEUInformation (const QOpcUaEUInformation & rhs )

Constructs a EUinformation from rhs .

QOpcUaLocalizedText QOpcUaEUInformation:: description () const

Returns the description of the unit, for example degree Celsius .

另請參閱 setDescription ().

QOpcUaLocalizedText QOpcUaEUInformation:: displayName () const

Returns the display name of the unit, for example °C .

另請參閱 setDisplayName ().

QString QOpcUaEUInformation:: namespaceUri () const

Returns the namespace URI of the unit.

另請參閱 setNamespaceUri ().

void QOpcUaEUInformation:: setDescription (const QOpcUaLocalizedText & 描述 )

Sets the description if the unit to description .

另請參閱 description ().

void QOpcUaEUInformation:: setDisplayName (const QOpcUaLocalizedText & displayName )

Sets the display name of the unit to displayName .

另請參閱 displayName ().

void QOpcUaEUInformation:: setNamespaceUri (const QString & namespaceUri )

Sets the namespace URI of the unit to namespaceUri .

另請參閱 namespaceUri ().

void QOpcUaEUInformation:: setUnitId ( qint32 unitId )

Sets the machine-readable identifier for the unit to unitId .

另請參閱 unitId ().

qint32 QOpcUaEUInformation:: unitId () const

Returns the machine-readable identifier for the unit.

另請參閱 setUnitId ().

QVariant QOpcUaEUInformation:: operator QVariant () const

Converts this EUinformation to QVariant .

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

設置值從 rhs in this EUinformation.

bool QOpcUaEUInformation:: operator== (const QOpcUaEUInformation & rhs ) const

返迴 true if this EUinformation has the same value as rhs .