QOpcUaRange Class
The OPC UA Range type. More...
Header: | #include <QOpcUaRange> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
qmake: | QT += opcua |
Public Functions
QOpcUaRange(double low, double high) | |
QOpcUaRange(const QOpcUaRange &rhs) | |
QOpcUaRange & | operator=(const QOpcUaRange &rhs) |
double | high() const |
double | low() const |
void | setHigh(double high) |
void | setLow(double low) |
QVariant | operator QVariant() const |
bool | operator==(const QOpcUaRange &rhs) const |
Detailed Description
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
QOpcUaRange::QOpcUaRange(double low, double high)
Constructs a range with low value low and high value high.
QOpcUaRange::QOpcUaRange(const QOpcUaRange &rhs)
Constructs a range from rhs.
QOpcUaRange &QOpcUaRange::operator=(const QOpcUaRange &rhs)
Sets the values from rhs in this range.
double QOpcUaRange::high() const
Returns the high value of the range.
See also setHigh().
double QOpcUaRange::low() const
Returns the low value of the range.
See also setLow().
void QOpcUaRange::setHigh(double high)
Sets the high value of the range to high.
See also high().
void QOpcUaRange::setLow(double low)
Sets the low value of the range to low.
See also low().
QVariant QOpcUaRange::operator QVariant() const
Converts this range to QVariant.
bool QOpcUaRange::operator==(const QOpcUaRange &rhs) const
Returns true
if this range has the same value as rhs.