[pygccxml-development] skipping base classes
Brought to you by:
mbaas,
roman_yakovenko
From: Ken M. <ke...@dn...> - 2008-09-17 13:06:14
|
Hello all, After reading through the archives, docs, and the source code I cannot find out a way to do the following. Say I have a class hierarchy like this: class A [...] class B : public A [...] class C : public B [...] I need to expose to python the classes A and C, but not B. When writing the boost::python code manually I do this: bp::class_<C, bp::bases<A> >("C") So that in python it thinks that C inherits directly from A and it all works. But now that I'm using Py++ I cannot figure out a way to achieve the same thing and I have to expose the intermediate classes, which for various reasons I really don't want to do. So is there a way to do what I want in Py++? Thanks. --Ken |