QKnxChar Class

The QKnxChar class is a datapoint type that encodes a character. More...

Header: #include <QKnxChar>
qmake: QT += knx
Inherits: QKnxFixedSizeDatapointType
Inherited By:

QKnxChar88591 and QKnxCharASCII

Public Functions

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

Reimplemented Public Functions

virtual bool isValid() const override

Protected Functions

QKnxChar(int subType, unsigned char value)

Detailed Description

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.

See also QKnxDatapointType and Qt KNX Datapoint Type Classes.

Member Function Documentation

[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

Reimplements: 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.

See also value().

unsigned char QKnxChar::value() const

Returns the value stored in the datapoint type.

See also setValue().

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.