
Mon, 08/19/2002 - 07:46
Forums:
Hello, all:
I build my application use the ocaf structure, and use the ocaf to serialize my datas, now question is how can I save other data into the save file, does the OCC provide the callback function or some virtual function to SERIALIZE the costomer's data?
Thankx for any ideas.
Lugi.C
Mon, 08/19/2002 - 15:32
If you build your `other data' on top of primitives provided by OCAF, i.e. mounted on some TDF_Label and use standard attributes, what you need to do is nothing.
But if you want to store your own data structure( not built on TDF_Label and standard attributes), you should
implement persistent class for your data structure, recompile StdSchema, and write storage plugin.... :-(
Sergey RUIN has posted a long message to dicuss this problem, you can search it by "Sergey & OCAF" on Forum.
fhchina
Wed, 08/21/2002 - 05:08
Thanks for answer, I got it.
Wed, 08/21/2002 - 08:53
Hi,
if you solve your problem, please share your experience and solution with the community. In fact, I havn't try to implement what Sergey said.
fhchina
Mon, 08/26/2002 - 08:20
Hi, I mean I know the routine of doing such a job, but I don't write any codes.:-)
Lugi.C
Wed, 08/21/2002 - 05:08
Thanks for answer, I got it.