[Kpvm Index] [Kpvm Hierarchy] [Headers]
VarTuple is the class-representation of one of the Serialize objects' attributes (variables). More...
#include <vartuple.h>
Inherits: QObject
It provides you the basic functions for manipulating/retrieving the VarTag (a descriptive name of the variable), the variables value and type.
[public]
different Constructors for all VarTypes, VarTag only or totally empty VarTuple
[public]
extracts the VarTag-Field This is useful for building a hashtable (qdict) on all variables
[public]
these are the known types of variables.
If you think, some type is missing, try to build your type with multipe base-types from VarType or, if you think a very common type is missing, just send me an email! :)
[public]
extracts the VarType-Field
[public]
extracts the Varibles value and returns it (ignoring its type) as a QString.
[public]
sets the internal Value and Type of this VarTuple-object according to the given var
var | is the variable to set. The type is detected automatically. |
[public]
sets the internal Value and Type of this VarTuple-object according to the given var
var | is the variable to write in. The type is detected automatically. If not, you have to store it into a known type and then convert it by normal ways. Don't use casts, as storeValueTo can't store the value back to a casted value! |
[public]
generates a QString looking like VarTag:VarType:Value.
With data you can easily build all needed variable-Tuples for VarTuple::objState
[public]
sets the Contents according to the given QString looking like VarTag:VarType:Value
With setData you can easily retrieve variable-Tuples from serialized objects for Serialize setObjState
varTuple | the VarTag:VarType:Value QString |
| Kdoc |