C++ XML Object Serialization (XOS) implementation like C#