QRange Class


The OPC UA Range type. More...

Header: #include <QtOpcUa/qopcuatype.h>
qmake: QT += opcua

Public Functions

QRange(const QOpcUa::QRange &rhs)
QRange(double low, double high)
double high() const
double low() const
void setHigh(double high)
void setLow(double low)
QVariant operator QVariant() const
QOpcUa::QRange &operator=(const QOpcUa::QRange &rhs)
bool operator==(const QOpcUa::QRange &rhs) const

Detailed Description

The OPC UA Range type.

This is the Qt OPC UA representation for the OPC UA Range type defined in OPC-UA part 8, 5.6.2. It consists of two double values which mark minimum and maximum of the range. Ranges are mostly used to store information about acceptable values for a node.

Member Function Documentation


Default constructs an instance of QRange.

QRange::QRange(const QOpcUa::QRange &rhs)

Constructs a range from rhs.

QRange::QRange(double low, double high)

Constructs a range with low value low and high value high.


Destroys the instance of QRange.

double QRange::high() const

Returns the high value of the range.

See also setHigh().

double QRange::low() const

Returns the low value of the range.

See also setLow().

void QRange::setHigh(double high)

Sets the high value of the range to high.

See also high().

void QRange::setLow(double low)

Sets the low value of the range to low.

See also low().

QVariant QRange::operator QVariant() const

Converts this range to QVariant.

QOpcUa::QRange &QRange::operator=(const QOpcUa::QRange &rhs)

Sets the values from rhs in this range.

bool QRange::operator==(const QOpcUa::QRange &rhs) const

Returns true if this range has the same value as rhs.

© 2018 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.