Re: [pygccxml-development] Trying to ramp up again
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2006-05-12 18:40:55
|
On 5/12/06, Allen Bierbaum <al...@vr...> wrote: > Roman Yakovenko wrote: > > 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. When py++ creates code creators for your declarations, it registers every u= sed type ( =3D=3D return type and function arguments ) in "types database". After, all functions have been exported, py++ then queries that data base f= or help_type and register_ptr_to_python. Please take a look on module_creator.types_database.py file. By default py++ creates an instance of this class and passes it to module_creator.creator_t instance. module_builder.module_builder_t.build_code_creator function takes an argume= nt types_db, by default is None. You can create your own types_dn and pass it to py++. Or may be you can take a look on types_database_t class and fix it= ? > I am not surprised it didn't work, but it may be interesting to > understand why it is not working. I agree with you > -Allen --=20 Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |