Sunday, December 27, 2009

Serialization in C++

I believe we all know the classical way to do serialization. First you need to use some implementation-independent language to define your interfaces. Than you need to use some generator to make code skeletons. And finally you have to implement the interfaces in some "real" language like C++.

Yes, that scheme works. But I tried to make something that simplifies developer's life. What if we skip the first two steps and do everything in C++?

The central idea of this article is to declare everything in C++ and generate in run time some easy to parse description for the interfaces.

No comments: