QOpcUaLiteralOperand Class

OPC UA LiteralOperand 类型。 更多...

头: #include <QOpcUaLiteralOperand>
qmake: QT += opcua

公共函数

  QOpcUaLiteralOperand (const QVariant & value , QOpcUa::Types type = QOpcUa::Types::Undefined)
  QOpcUaLiteralOperand (const QOpcUaLiteralOperand & rhs )
QOpcUaLiteralOperand & operator= (const QOpcUaLiteralOperand & rhs )
void setType (QOpcUa::Types type )
void setValue (const QVariant & value )
QOpcUa::Types type () const
QVariant value () const
QVariant operator QVariant () const

详细描述

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

成员函数文档编制

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 .

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

设置值从 rhs 在此 QOpcUaLiteralOperand .

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 .