Discussion:
[Swig-devel] Trying to get the class hierarchy from a given subclass.
Timothy Mazurco
2015-04-20 18:34:49 UTC
Permalink
Hello all,

I have tried several methods to get the class hierarchy from SWIG but have had no luck. I've tried the following:
String *base = SwigType_base(type);
String *bl = getClassType();
String *pbl = Getattr(n, "protectedbases");
String *alias = Getattr(n,"alias");
Symtab *stab = Getattr(n, "symtab");

As well as looking through other modules and no luck. Is there something I'm missing?


Thanks,
Tim



Timothy Mazurco | Software Engineer

T 586-996-1007

***@altair.com<mailto:***@altair.com> | altair.com<http://www.altair.com/>

Altair | Innovation Intelligence(r)
William S Fulton
2015-05-10 17:13:32 UTC
Permalink
Post by Timothy Mazurco
Hello all,
I have tried several methods to get the class hierarchy from SWIG but have
String *base = SwigType_base(type);
String *bl = getClassType();
String *pbl = Getattr(n, "protectedbases");
String *alias = Getattr(n,"alias");
Symtab *stab = Getattr(n, "symtab");
As well as looking through other modules and no luck. Is there something I’m
missing?
Look for the "bases" attribute, such as:
List *baselist = Getattr(n, "bases")
in the different language modules.

William

Continue reading on narkive:
Loading...