[pygccxml-development] Adding wrappers...
Brought to you by:
mbaas,
roman_yakovenko
From: Matthias B. <ba...@ir...> - 2006-04-09 15:37:14
|
Hi, this mail is sort of a continuation of the thread "How to manage wrapper classes?"... Meanwhile I have some code that can generate wrapper source code for individual member functions. The question now is how do I insert those into pyplusplus? What I would actually like to do is adding those generated functions to the appropriate *.cpp file that is generated by pyplusplus and then replace the original member function with this wrapper function. I had a look at the multi file writer (while doing so I also added some doc strings) but it seems that adding code to a generated file is not possible. Alternatively, I could stick my new code in a separate file (.h/.cpp). Then the only problem is to include the header in the pyplusplus file. As far as I can tell this also cannot be done on a file-by-file basis, but I could add the header files to *all* generated files at once (not really a nice solution but at least it could work). Are there any suggestions on how this could be improved? I think pyplusplus is in need of more flexibility in this area. This all gets even more problematic if pyplusplus has already decided to generate wrappers and I want to add wrapper code as well. How can these two be combined? It might be that I have such examples as well in the Maya SDK, but I'm not really that far yet... - Matthias - |