Re: [pygccxml-development] code_repository package
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2006-09-19 11:41:58
|
On 9/19/06, Matthias Baas <ba...@ir...> wrote: > Roman Yakovenko wrote: > > With this class you can change the code in create_virtual_body method. > > Py++ has all functionality needed to add this code Take a look on > > code_repository package. > > I've seen that those files get written in > writer_t.write_code_repository(). But what does this line do: > > if self.__extmodule.is_system_header( cr.file_name ): > > What exactly is a "system header" in this context? In whole context "system header" defined as header file that belongs to Boost.Python or to Py++. When I build code creators tree, in creator_t, I add "include" directives to the module_t code creator. In all cases I know whether they are system headers or > And a second question: Where is the 'namespace' variable used? When you use the functionality defined in the repository. Take a look on array_1_registrator_t code creator and its construction in creator_t class. The namespace solves few problems: 1. pollution of global namespace 2. prevents Py++ functionality to conflict with user defined one 3. to say explicitly to the user that this code has been written by Py++ developers and not by Boost.Python ( be careful :-) ) -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |