From: Leif J. <le...@am...> - 2003-12-11 04:42:04
|
Hi all - I'm still hacking on the Python wrapper generator. It's a bit slow going, but progress is happening. I think the wrappers will be really clean when they're finished ; there is a nice mapping between Python objects and the CCM component structure, at least so far. The big issue is going to be converting interfaces to Python and back---eech. I made a couple of changes to the C++ generators. Notably, the base CppGenerator class now has a list called base_namespace that can hold any base namespaces needed by the child classes. For the CppLocalGeneratorImpl, this list holds [ "CCM_Local" ], for the remote generators it could hold [ "CCM_Remote" ], and for the CppPythonGeneratorImpl it holds [ "CCM_Test", "Python", "CCM_Local" ]. These base namespaces are added to the namespace stack when the code generators start processing a graph, so we (hopefully) don't need as many hacks in the handleNamespace function (which is kind of a hack anyway ; that's what you get for having a Python coder design things for you. :). leif -- Leif Morgan Johnson : http://ambient.2y.net/leif/ |