QKnx4ByteUnsignedValue Class

The QKnx4ByteUnsignedValue class is a datapoint type with a 4-byte unsigned value. 更多...

头: #include <QKnx4ByteUnsignedValue>
qmake: QT += knx
继承: QKnxFixedSizeDatapointType
继承者:

QKnxValue4UCount

公共函数

QKnx4ByteUnsignedValue (quint32 value )
QKnx4ByteUnsignedValue ()
bool setValue (quint32 value )
quint32 value () const

重实现公共函数

virtual bool isValid () const override

保护函数

QKnx4ByteUnsignedValue (int subType , quint32 value )

详细描述

This is a fixed size datapoint type with the length of 4 bytes.

Integer values from 0 to 4 294 967 295 can be encoded in this datapoint type.

另请参阅 QKnxDatapointType and Qt KNX Datapoint Type Classes .

成员函数文档编制

[protected] QKnx4ByteUnsignedValue:: QKnx4ByteUnsignedValue ( int subType , quint32 value )

Creates a fixed size datapoint type with the subtype subType and value value .

QKnx4ByteUnsignedValue:: QKnx4ByteUnsignedValue ( quint32 value )

Creates a fixed size datapoint type with the value value .

QKnx4ByteUnsignedValue:: QKnx4ByteUnsignedValue ()

Creates a fixed size datapoint type with the value set to 0 .

[override virtual] bool QKnx4ByteUnsignedValue:: isValid () const

重实现: QKnxDatapointType::isValid () const.

bool QKnx4ByteUnsignedValue:: setValue ( quint32 value )

Sets the value of the datapoint type to value .

If the value is outside the allowed range, returns false and does not set the value.

另请参阅 value ().

quint32 QKnx4ByteUnsignedValue:: value () const

Returns the value stored in the datapoint type.

另请参阅 setValue ().