QOpcUaLiteralOperand Class

OPC UA LiteralOperand 類型。 更多...

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

公共函數

QOpcUaLiteralOperand ()
QOpcUaLiteralOperand (const QVariant & value , QOpcUa::Types type = QOpcUa::Types::Undefined)
QOpcUaLiteralOperand (const QOpcUaLiteralOperand & rhs )
void setType (QOpcUa::Types type )
void setValue (const QVariant & value )
QOpcUa::Types type () const
QVariant value () const
QVariant operator QVariant () const
QOpcUaLiteralOperand & operator= (const QOpcUaLiteralOperand & rhs )
(從 6.7 起) bool operator!= (const QOpcUaLiteralOperand & lhs , const QOpcUaLiteralOperand & rhs )
(從 6.7 起) bool operator== (const QOpcUaLiteralOperand & lhs , const QOpcUaLiteralOperand & rhs )

詳細描述

The LiteralOperand is defined in OPC UA 1.05 part 4, 7.7.4.3. It contains a literal value that is to be used as operand.

成員函數文檔編製

QOpcUaLiteralOperand:: QOpcUaLiteralOperand ()

Default constructs a literal operand with no parameters set.

QOpcUaLiteralOperand:: QOpcUaLiteralOperand (const QVariant & value , QOpcUa::Types type = QOpcUa::Types::Undefined)

Constructs a literal operand of value value and type type .

QOpcUaLiteralOperand:: QOpcUaLiteralOperand (const QOpcUaLiteralOperand & rhs )

Constructs a literal operand from rhs .

void QOpcUaLiteralOperand:: setType ( QOpcUa::Types type )

Sets the type of the value of the literal operand to type .

另請參閱 type ().

void QOpcUaLiteralOperand:: setValue (const QVariant & value )

Sets the value of the literal operand to value .

另請參閱 value ().

QOpcUa::Types QOpcUaLiteralOperand:: type () const

Returns the type of the value of the literal operand.

另請參閱 setType ().

QVariant QOpcUaLiteralOperand:: value () const

Returns the value of the literal operand.

另請參閱 setValue ().

QVariant QOpcUaLiteralOperand:: operator QVariant () const

Converts this literal operand to QVariant .

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

設置值從 rhs 在此 QOpcUaLiteralOperand .

相關非成員

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

返迴 true if lhs has a different value than rhs .

該函數在 Qt 6.7 引入。

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

返迴 true if lhs has the same value as rhs .

該函數在 Qt 6.7 引入。