[pygccxml-development] Querying subclasses of some class?
Brought to you by:
mbaas,
roman_yakovenko
From: Paul M. <pa...@sc...> - 2008-10-27 10:42:42
|
Hi, I want to set a return policy for a whole set of class methods. This set consists of all methods returning a pointer to some class A *or one of its subclasses*. I don't think I can directly accomplish this using member_functions(return_value='A *'), as this doesn't seem to match the subclasses. One way I can probably make this work is if I can iterate over the subclasses of A and then do a member_functions() call for the subclass pointer type, followed by setting the return policy. Is there a way with pygccxml/Py++ to get a list of subclasses of some class A? Thanks, Paul |