Re: [pygccxml-development] [FT] small issue
Brought to you by:
mbaas,
roman_yakovenko
From: Matthias B. <ba...@ir...> - 2006-09-25 10:17:14
|
Roman Yakovenko wrote: > Because when user will try to add new transformation, he will need to > understand code creators Why do you think this is the case? It's not. If a transformer creates code that requires a particular header, it has to declare so by calling the require_header() method on the corresponding code manager object. >> So how does the current design deal with the problem that a code creator >> might generate code that requires a particular header file? > > Very very simple - all this information creator_t takes from > decl_wrappers classes. Could you provide an explanation using the following example scenario: A user implements a custom code creator in his generation script. The code creator can be parameterized and can produce slightly different code depending on those parameters. Each code variation has its own set of required header files, some of which are written by the user, some are part of the project he's creating wrappers for and some might be from the Py++ code repository. After the Py++ code creator tree has been built, the user adds several of his custom creators at appropriate places into the tree. Now the question is, what else has to be done to include the required header files and who's actually including them? And where do the decl_wrapper classes come into play here? - Matthias - |