Re: [pygccxml-development] Trying to ramp up again
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2006-05-11 19:21:05
|
On 5/11/06, Allen Bierbaum <al...@vr...> wrote: > All of my libraries use boost::shared_ptr's. > > How do I: > > - register held types for a class. The experimental pypp_api I did had > a .setHeldType() method, is there something similar still. In most cases pyplusplus will find out this automatically. Any way, pyplusplus/decl_wrappers class_t has held_type property. > - How do I generate "register_ptr_to_python" calls? Same as above. If it does not work for you you will need to modify code creators tree directly. So, if it will not work for you, I will show you the code. > - How do I generate "implicitly_convertible" calls? Same as above > - How do I add custom text (or the code creator for custom text) to a > decl wrapper? (I could probably find this in the code, but thought I > would ask first) You can use 2 methods defined on decl_wrapper.class_t class: add_code( code, works_on_instance=3DTrue ) add_wrapper_code( code ). > Thanks, > Allen P.S. Pay attention I redirect my answer to mailing list too. I want this information available to other people too. --=20 Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |