QKnxVarString Class

The QKnxVarString class is a datapoint type that encodes a variable length string. More...

Header: #include <QKnxVarString>
qmake: QT += knx
Since: Qt 5.11
Inherits: QKnxVariableSizeDatapointType
Inherited By:

QKnxVarString88591

Public Functions

QKnxVarString()
QKnxVarString(QLatin1String string)
QKnxVarString(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

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

Additional Inherited Members

Detailed Description

The QKnxVarString class is a datapoint type that encodes a variable length string.

This datapoint type encodes a string of variable length. The encoding of the string is specified in QKnxVarString88591.

This is a variable sized datapoint type.

See also QKnxDatapointType, QKnxVarString88591, QKnxCharString, QKnxCharStringASCII, QKnxCharString88591, and Qt KNX Datapoint Type Classes.

Member Function Documentation

QKnxVarString::QKnxVarString()

Creates a variable sized datapoint type.

QKnxVarString::QKnxVarString(QLatin1String string)

Creates a variable sized datapoint type that stores the string string.

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

Creates a variable sized datapoint type that stores the string string with the length size.

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

Creates a variable sized datapoint type with the sub type subType that stores the string string with the length size.

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

Reimplemented from QKnxDatapointType::isValid().

bool QKnxVarString::setString(QLatin1String string)

Sets the string stored in the datapoint type to string.

Returns true if the value was set; otherwise returns false.

See also string().

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

Sets the string stored in the datapoint type to string with the length size.

If size is -1, the full string is used.

Returns true if the value was set; otherwise returns false.

QLatin1String QKnxVarString::string() const

Returns the string stored in the datapoint type.

See also setString().

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