The module implements conversion of Dao data types to internal textual serialization format and vice versa
namespace std
Functions:
- serialize(invar value: any) => string
- deserialize(text: string) => any
- backup(dest = "backup.sdo", limit = 0)
- restore(source = "backup.sdo")
serialize(invar value: any) => stringSerializes value to text. For a class instance to be serializeable, its class should define serialize() method returning instance-related data to be serialized
deserialize(text: string ) => anyDeserializes value from text. For a class instance to be deserializeable, its class should provide constructor compatible with the data returned
by the serialize() method; if the latter returns a tuple, the constructor should accept parameters corresponding to the individual fields of that tuple
Errors: Deserialize if deserialization failed
backup(dest = "backup.sdo", limit = 0)Saves the current state of the program to the file specified by dest. if limit is greater then 0, objects whose serialized size exceeds limit * 1000 bytes are not included in the backup
Errors: File if failed to write to dest
restore(source = "backup.sdo")Restores previously saved program state from the file specified by source
Errors: File if failed to read to dest, Deserialize if deserialization failed