[mapguide-internals] Bounderies between mapguide Server andClients

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Sat Feb 21 05:16:52 EST 2009


Hi Carl.

I share your positive outlook on pure managed code :).

If you wan't to dwelve into how the serialization/deserialization works,
I have written methods for this, and a class to handle the runtime map 
used in MapGuide (all in C#):
http://trac.osgeo.org/mapguide/browser/trunk/Tools/Maestro/MaestroAPI/BinarySerializer
http://trac.osgeo.org/mapguide/browser/trunk/Tools/Maestro/MaestroAPI/RuntimeClasses

The current C++ backend does not handle different versions, so it
would be fairly hard to keep all those classes in sync.
A good unittest might ease this a bit though.

At the C++ side, all serialization/deserialization is done purely by "hand",
meaning that there are no automatic processes for 
serialization/deserialization,
of a class, based on its content.

If the process was automatic, eg by parsing the .h files or similar, it
would be easy to create an equvalent for C#/Java/PHP that does not
rely on a native component.

Regards, Kenneth Skovhede, GEOGRAF A/S




More information about the mapguide-internals mailing list