Re: [pygccxml-development] problem with an array of pointers
Brought to you by:
mbaas,
roman_yakovenko
From: Gordon W. <gor...@gm...> - 2008-07-10 06:23:02
|
On the documentation front, the main thing that was confusing me is that menu in the top left, once I realised that it was the main navigation tool getting around the docs got a lot easier. Also the insight that all those vars, mem_funs etc functions in module_builder_t return further module_builder_t's helped a lot. I'm getting the documentation now and it's helping a lot. With regard to the example... I already mentioned that getName is going. I put the getters and setters in for the fred/planet example and the class properties section of this page http://www.boost.org/doc/libs/1_35_0/libs/python/doc/tutorial/doc/html/python/exposing.htmlthat you sent me earlier (thanks for that) helped me figure out how to tie them in in the way I want, testing that at the moment and it seems to be working. The loadFile example was already working (and I had already tested it in a different context but hadn't realised) Will start into the image and data examples after the current round of testing. All in all today is going very well. On Thu, Jul 10, 2008 at 4:07 PM, Roman Yakovenko <rom...@gm...> wrote: > On Thu, Jul 10, 2008 at 3:06 AM, Gordon Wrigley > <gor...@gm...> wrote: > > on > http://language-binding.net/pyplusplus/documentation/how_to/how_to.html I > > believe the following code: > > > > registration_code = 'def( "get_size", &%s::get_size )' % > > window.wrapper_alias > > > > mb = module_builder_t( ... ) > > window = mb.class_( "window_t" ) > > window.member_function( "get_size" ).exclude() > > window.add_wrapper_code( wrapper_code ) > > window.registration_code( registration_code ) > > > > should instead read > > > > mb = module_builder_t( ... ) > > window = mb.class_( "window_t" ) > > window.member_function( "get_size" ).exclude() > > window.add_wrapper_code( wrapper_code ) > > registration_code = 'def( "get_size", &%s::get_size )' % > > window.wrapper_alias > > window.add_registration_code( registration_code ) > > > > and I now have the getName example working > > This your first contribution to the project :-) > > Thanks. I fixed it. > > > -- > Roman Yakovenko > C++ Python language binding > http://www.language-binding.net/ > |