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()
QKnxChar(unsigned char value)
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)

Additional Inherited Members

Detailed Description

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

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

QKnxChar::QKnxChar()

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

QKnxChar::QKnxChar(unsigned char value)

Creates a fixed size datapoint type with the value value.

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

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

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

Reimplemented from QKnxDatapointType::isValid().

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

© 2018 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.