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