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 ().