Re: [pygccxml-development] typedef lookup feature from long ago...
Brought to you by:
mbaas,
roman_yakovenko
From: Allen B. <al...@vr...> - 2006-06-20 16:39:27
|
Roman Yakovenko wrote: > [...] > >> >> .type is the correct type, but it is not the decl_wrapper for the type >> that the typedef aliases. >> >> For example: >> >> typedef really_complex< nested<int>, ugly<long>, 56> simple_t; >> >> td = ns.typedef("simple_t") >> >> td is a pygccxml.declarations.cpptypes.declared_t and >> td.declaration is a pyplusplus.decl_wrapper.typedef_wrapper.typedef_t >> but what I want is the class_wrapper for "really_complex< nested<int>, >> ugly<long>, 56>". How do I get to this object? > > > td.type.declaration ? > > May be it is a time to send me small script, so I will be able to > provide you a solution. > It seems to me that we have small misunderstanding I ended up having to do something like this: td.type.declaration.type.declaration Once I get done with the binding generation I can point you at the script I am using so you can see what I have to do to get to this type information. -Allen > >> -Allen >> >> > >> >> I probably won't need it until this weekend or the beginning of next >> >> week, but if you are going to get busy I wanted to ask before you >> have >> >> better things to do then answer e-mails from pesky people like me. :) >> > >> > >> > :-) >> > >> >> -Allen >> >> >> >> >> > >> > >> >> > > |