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: |
This class was introduced in Qt 5.11.
Public Functions
QKnxVarString(const char *string, int size = -1) | |
QKnxVarString(QLatin1String string) | |
QKnxVarString() | |
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) |
Detailed Description
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
[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.
QKnxVarString::QKnxVarString(const char *string, int size = -1)
Creates a variable sized datapoint type that stores the string string with the length size.
QKnxVarString::QKnxVarString(QLatin1String string)
Creates a variable sized datapoint type that stores the string string.
QKnxVarString::QKnxVarString()
Creates a variable sized datapoint type.
[override virtual]
bool QKnxVarString::isValid() const
Reimplements: QKnxDatapointType::isValid() const.
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().