persistence class has:
- virtual persistID=NULL - returns unique ID (integer, class name, or
type_info)
- virtual save_guts=NULL - {parent.save();y.save();save(int i);save(double
d);}
- virtual restor_guts=NULL- {parent.restore();y.restore();restor(i);restore(d);}
- virtual persist *X::clone - {return new X(*this);}
Before calling X.save(), use add _type(&X);
For pointers, need a map of pointers and whether they have been saved.8
source
psfile jl@crush.caltech.edu index
persistence