The QKnxChar class is a datapoint type that encodes a character. 更多...
头: | #include <QKnxChar> |
qmake: | QT += knx |
继承: | QKnxFixedSizeDatapointType |
继承者: |
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 .
Creates a fixed size datapoint type with the value value .
Creates a fixed size datapoint type with the value set to
0
.
[override virtual]
bool
QKnxChar::
isValid
() const
重实现: QKnxDatapointType::isValid () const.
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 ().
Returns the value stored in the datapoint type.
另请参阅 setValue ().