Florian Preknya Guest
|
Posted: Fri Nov 19, 2004 4:57 pm Post subject: C++ serialization libraries & related problems |
|
|
I am looking a C++ serialization library for adding serialization
support for the application framework I am developing. The framework is
somehow based on the MVC pattern, and the serialization support must
cover all the entities: models, views, and permit custom, user defined
objects to become persistent.
I found some very nice serialization projects:
- boost 1.32.0 comes with a serialization library
- GenSerial (on SourceForge, presented in CUJ, september 2004)
- s11n.net
- XParam
etc.
I had to choose one of these serialization libraries, and I'm now
comparing them. I'll appreciate if you could share any experience with
any of the open source serialization libraries. Any comments,
suggestions or observations would be appreciated.
As an extra, my application framework code is based heavily on
templates, and type safety was a goal of the framework. I am aware that
on deserialization, one problem is related to codebase completion: all
the types must exist, so I must force some template instantiations. Some
of the serialization libraries presented above give some help in this
sense. A second problem is related on reconstructing the type
information of the deserialized objects: the views knows about their
specific model, so I have to rely on a scalable double dispatch method
to recover the model and view types before attaching the views to their
model. I found interesting (and maybe useful) the last chapter of A.
Alexandrescu book (Modern C++ Design) that discuss about multimethods.
Also, any ideas about these things are very welcomed.
Thanks,
Florian Preknya
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
|
|