The OPC UA Range type. 更多...
头: | #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 |
This is the Qt OPC UA representation for the OPC UA Range type defined in OPC UA 1.05 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.
Default constructs a range with no parameters set.
Constructs a range with low value low and high value high .
Constructs a range from rhs .
Returns the high value of the range.
另请参阅 setHigh ().
Returns the low value of the range.
另请参阅 setLow ().
Sets the high value of the range to high .
另请参阅 high ().
Sets the low value of the range to low .
另请参阅 low ().
Converts this range to QVariant .
设置值从 rhs in this range.
返回
true
if this range has the same value as
rhs
.