In a few words, the Generator is a utility that parses a collection of header and typesystem files, generating other files (code, documentation, etc.) as result.
Each module of the generator system has an specific role.
The newly created binding will run on top of Boost.Python library which takes care of interfacing Python and the underlying C++ library.
Creating new bindings involves creating two pieces of “code”: the typesystem and the inject code.
typesystem: | XML files that provides the developer with a tool to customize the way that the generators will see the classes and functions. For example, functions can be renamed, have its signature changed and many other actions. |
---|---|
inject code: | allows the developer to insert handwritten code where the generated code is not suitable or needs some customization. |