I am having trouble wrapping a class right now. The problem is that the
class uses template base classes to mixin functionality. This makes it
appear to pygccxml that the class has a half-dozen base classes. But I
don't want to expose these base classes, all I want to expose is the
class that is composed from the mixin functionality. To make matters
worse there is something in the handling of these mixins that is making
pyplusplus code creators expose them all as having the same name
("Inherited"). I think this is because each mixin class uses a typedef
called Inherited to keep track of the class that it is inheriting from.
(I have attached a file that shows the basic idea, but it is a vast
simplification of the case I am really trying to handle)
Anyway, to make a long story short, what I would like to do is just tell
pyplusplus to ignore the base classes (ie. don't expose them) but to
instead pull all of the methods defined in those base classes into the
derived class I am trying to expose. Then the generated code would only
create a wrapper for the derived class and would just create "def"'s
that reference the methods from the mixins.
Is this possible?
-Allen
|