QOpcUaLiteralOperand Class

The OPC UA LiteralOperand type. More...

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

Public Functions

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

Detailed Description

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

Member Function Documentation

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)

Sets the values from rhs in this QOpcUaLiteralOperand.

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

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

See also type().

void QOpcUaLiteralOperand::setValue(const QVariant &value)

Sets the value of the literal operand to value.

See also value().

QOpcUa::Types QOpcUaLiteralOperand::type() const

Returns the type of the value of the literal operand.

See also setType().

QVariant QOpcUaLiteralOperand::value() const

Returns the value of the literal operand.

See also setValue().

QVariant QOpcUaLiteralOperand::operator QVariant() const

Converts this literal operand to QVariant.

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.