QOpcUaXValue Class

The OPC UA XVType. 更多...

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

公共函數

QOpcUaXValue ()
QOpcUaXValue (double x , float value )
QOpcUaXValue (const QOpcUaXValue & rhs )
void setValue (float value )
void setX (double x )
float value () const
double x () const
QVariant operator QVariant () const
QOpcUaXValue & operator= (const QOpcUaXValue & rhs )
bool operator== (const QOpcUaXValue & rhs ) const

詳細描述

This is the Qt OPC UA representation for the OPC UA XVType type defined in OPC UA 1.05 part 8, 5.6.8. This type is used to position values of float precision on an axis with double precision.

成員函數文檔編製

QOpcUaXValue:: QOpcUaXValue ()

Default constructs a XValue object with no parameters set.

QOpcUaXValue:: QOpcUaXValue ( double x , float value )

Constructs an XValue with position x and value value .

QOpcUaXValue:: QOpcUaXValue (const QOpcUaXValue & rhs )

Constructs an XValue from rhs .

void QOpcUaXValue:: setValue ( float value )

Sets the value for position x to value .

另請參閱 value ().

void QOpcUaXValue:: setX ( double x )

Sets the position of the value on the axis to x .

另請參閱 x ().

float QOpcUaXValue:: value () const

Returns the value for position x.

另請參閱 setValue ().

double QOpcUaXValue:: x () const

Returns the position of the value on the axis.

另請參閱 setX ().

QVariant QOpcUaXValue:: operator QVariant () const

Converts this XValue to QVariant .

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

設置值從 rhs in this XValue.

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

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