QKnxChar Class

The QKnxChar class is a datapoint type that encodes a character. 更多...

頭: #include <QKnxChar>
qmake: QT += knx
繼承: QKnxFixedSizeDatapointType
繼承者:

QKnxChar88591 and QKnxCharASCII

公共函數

QKnxChar (unsigned char value )
QKnxChar ()
bool setValue (unsigned char value )
unsigned char value () const

重實現公共函數

virtual bool isValid () const override

保護函數

QKnxChar (int subType , unsigned char value )

詳細描述

The encoding of the character is specified in QKnxCharASCII and QKnxChar88591 .

This is a fixed size datapoint type with the length of 1 byte.

The range for the value is from 0 to 255 .

另請參閱 QKnxDatapointType and Qt KNX Datapoint Type Classes .

成員函數文檔編製

[protected] QKnxChar:: QKnxChar ( int subType , unsigned char value )

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

QKnxChar:: QKnxChar ( unsigned char value )

Creates a fixed size datapoint type with the value value .

QKnxChar:: QKnxChar ()

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

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

重實現: QKnxDatapointType::isValid () const.

bool QKnxChar:: setValue ( unsigned char 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 ().

unsigned char QKnxChar:: value () const

Returns the value stored in the datapoint type.

另請參閱 setValue ().