OCAF serialize

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

fhchina's picture

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

Lugi.C's picture

Thanks for answer, I got it.

fhchina's picture

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

Lugi.C's picture

Hi, I mean I know the routine of doing such a job, but I don't write any codes.:-)
Lugi.C

Lugi.C's picture

Thanks for answer, I got it.