[Kpvm Index] [Kpvm Hierarchy] [Headers]
Serialize is the superclass of all serializable objects. More...
#include <serialize.h>
Inherits: QObject
It gives the possibility to dump/load its actual State to/from a specially formatted string. So all pvm-sendable objects _must_ inherit from Serialize .
[public]
allows the KPvm class to dump/restore the objectState to the actual Serialize object
[protected virtual]
dumps the actual object state into a QList of VarTuples
It has to be implemented by all subclasses!
[protected virtual]
sets the actual object state according to the given QList of VarTuples
Here it may be, that the VarTags may _not_ be valid, so we have to assume the same fixed order as we used when dumping in setObjState
It has to be implemented by all subclasses!
fixedOrderedState | the state-representing QList of VarTuples in a fixed order |
[protected virtual]
sets the actual object state according to the given QList of VarTuples
All VarTags have to be valid, but the order may be different not even complete from when we've dumped in setObjState
So we have to implement a search for finding the correct [VarTag:VarType:Value]-Tuple for our variables to fill with. I would suggest to use QDict for quick access.
It has to be implemented by all subclasses!
state | the state-representing QList of VarTuples in any (incomplete) order |
| Kdoc |