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