QKnxCharString Class

The QKnxCharString class is a datapoint type that encodes a string. More...

Header: #include <QKnxCharString>
qmake: QT += knx
Inherits: QKnxFixedSizeDatapointType

Public Functions

QKnxCharString()
QKnxCharString(QLatin1String string)
QKnxCharString(const char *string, int size = -1)
bool setString(QLatin1String string)
bool setString(const char *string, int size = -1)
QLatin1String string() const

Reimplemented Public Functions

virtual bool isValid() const override

Protected Functions

QKnxCharString(int subType, const char *string, int size)

Detailed Description

The QKnxCharString class is a datapoint type that encodes a string.

This datapoint type encodes a string of QKnxChar. The encoding of the string is specified in QKnxStringCharASCII and QKnxStringChar88591 that inherit class.

This is a fixed size datapoint type with the length of 1 byte.

See also QKnxDatapointType.

Member Function Documentation

QKnxCharString::QKnxCharString()

Default constructs an instance of QKnxCharString.

QKnxCharString::QKnxCharString(QLatin1String string)

Default constructs an instance of QKnxCharString.

QKnxCharString::QKnxCharString(const char *string, int size = -1)

Default constructs an instance of QKnxCharString.

[protected] QKnxCharString::QKnxCharString(int subType, const char *string, int size)

Default constructs an instance of QKnxCharString.

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

Reimplemented from QKnxDatapointType::isValid().

bool QKnxCharString::setString(QLatin1String string)

See also string().

bool QKnxCharString::setString(const char *string, int size = -1)

QLatin1String QKnxCharString::string() const

See also setString().

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