Re: [pygccxml-development] Trying to ramp up again
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2006-05-11 19:41:05
|
On 5/11/06, Allen Bierbaum <al...@vr...> wrote: > 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 ha= d > >> 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. When you will have more time, I would like to make sure that pyplusplus tre= ats your case. > I was hoping that I would never have to search through the code creator t= ree. There are use case where you will have to. > 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. Yes, just use an API I gave you: add_code( your code, works_on_instance=3DFalse ) It should do the trick > -Allen --=20 Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |