Re: [pygccxml-development] Trying to ramp up again
Brought to you by:
mbaas,
roman_yakovenko
From: Allen B. <al...@vr...> - 2006-05-12 16:14:06
|
Roman Yakovenko wrote: > 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. What does pyplusplus use to determine this? I ask because it didn't work for any of my classes. I am not surprised it didn't work, but it may be interesting to understand why it is not working. -Allen > >> - 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=True ) > 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. > |