Re: [pygccxml-development] Trying to ramp up again
Brought to you by:
mbaas,
roman_yakovenko
From: Allen B. <al...@vr...> - 2006-05-11 19:35:09
|
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. > >> - 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. Ok. I know that in my case this will not be automatically determined, so how would I do this. I was hoping that I would never have to search through the code creator tree. Would it be possible for me to just add custom text to the decl wrapper class? I think there was some functionality like this in an early version of the API that effectively allowed users to add any custom calls they needed inside the class scope of the generated code. -Allen > >> - 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. > |