[C++-sig] Lost Again! :)

Roman Yakovenko roman.yakovenko at gmail.com
Fri Sep 1 16:21:52 CEST 2006


On 9/1/06, Nicolas Tessore <wz_ at gmx.net> wrote:
> Roman Yakovenko wrote:
> > Please take a look on
> > http://language-binding.net/pygccxml/apidocs/pygccxml.declarations.templates-module.html
> > The functionality provided by this module will do the job for you.
> I guess I should start searching both docs more. Thanks for the heads-up.
>
> > But you ignored my advice:
> >
> > cls_to = declarations.class_traits.get_declaration( cast.return_type )
> > cast.rename( 'DynamicCastTo' + cls_to.name )
> >
> > You don't have to parse, just extract class declaration from DynamicCast return
> > type.
>
> No, the return type is not the right kind. This is due to the fact that
> Mylib::Ref<T> is used as a pointer to T. Still the return type is T*.

Take a look on
http://language-binding.net/pygccxml/apidocs/pygccxml.declarations.type_traits-module.html
P++ via pygccxml provides a lot of "type_traits" functionality found
in boost.type_traits
library:
http://language-binding.net/pygccxml/apidocs/pygccxml.declarations.type_traits-module.html

> > Read this: http://language-binding.net/pyplusplus/documentation/hints.html
> > It should explain why Py++ does not work as you expects.
> >
> Yes, I saw that and thus want to do it in the script :)

http://language-binding.net/pygccxml/apidocs/pygccxml.declarations.class_declaration.class_t-class.html#aliases

Take a look on the documentation. May be you will be able to implement
custom logic
that will assign aliases automatically

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/



More information about the Cplusplus-sig mailing list