QOpcUaRange Class

OPC UA 范围类型。更多

头文件: #include <QOpcUaRange>
CMake: find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua

公共函数

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

详细说明

这是 OPC UA 1.05 第 8 部分 5.6.2 中定义的 OPC UA Range 类型的Qt OPC UA 表示法。它由两个双值组成,分别表示范围的最小值和最大值。范围主要用于存储节点可接受值的信息。

成员函数文档

QOpcUaRange::QOpcUaRange()

默认情况下构建一个未设置参数的范围。

QOpcUaRange::QOpcUaRange(double low, double high)

构建一个具有低值low 和高值high 的范围。

QOpcUaRange::QOpcUaRange(const QOpcUaRange &rhs)

rhs 构建一个范围。

double QOpcUaRange::high() const

返回范围的最高值。

另请参阅 setHigh()。

double QOpcUaRange::low() const

返回范围的低值。

另请参阅 setLow()。

void QOpcUaRange::setHigh(double high)

将范围的高值设置为high

另请参阅 high()。

void QOpcUaRange::setLow(double low)

将范围的低值设置为low

另请参见 low()。

QVariant QOpcUaRange::operator QVariant() const

将此范围转换为QVariant

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

在此范围内设置rhs 的值。

bool QOpcUaRange::operator==(const QOpcUaRange &rhs) const

如果此范围的值与rhs 相同,则返回true

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