The QKnxVarString class is a datapoint type that encodes a variable length string. 更多...
| 头: | #include <QKnxVarString> | 
| qmake: | QT += knx | 
| Since: | Qt 5.11 | 
| 继承: | QKnxVariableSizeDatapointType | 
| 继承者: | 
该类在 Qt 5.11 引入。
| 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 | 
| virtual bool | isValid () const override | 
| QKnxVarString (int subType , const char * string , int size ) | 
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.
另请参阅 QKnxDatapointType , QKnxVarString88591 , QKnxCharString , QKnxCharStringASCII , QKnxCharString88591 ,和 Qt KNX Datapoint Type Classes .
[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 .
Creates a variable sized datapoint type that stores the string string with the length size .
Creates a variable sized datapoint type that stores the string string .
Creates a variable sized datapoint type.
[override virtual]
						
						
							bool
						
						QKnxVarString::
						
							isValid
						
						() const
						
					重实现: QKnxDatapointType::isValid () const.
Sets the string stored in the datapoint type to string .
						返回
						
true
						
						if the value was set; otherwise returns
						
false
						
						.
					
另请参阅 string ().
Sets the string stored in the datapoint type to string with the length size .
						若
						
							size
						
						is
						
-1
						
						, the full
						
							string
						
						被使用。
					
						返回
						
true
						
						if the value was set; otherwise returns
						
false
						
						.
					
Returns the string stored in the datapoint type.
另请参阅 setString ().