Hi Arial,

I suppose you want to generate Python binding source code for your C++ library.
In summary what you need is the C++ headers, and a xml description
file that tells
the binding generator how to export your C++ API to Python called type
system file.
That file tells what gets in, which methods or functions are renamed, etc.

There is a tutorial on how to use Shiboken to generate your own bindings here:
http://www.pyside.org/docs/shiboken/tutorial/introduction.html

The PySide source code is also a good example of Shiboken usage.

On the other hand, if you want to parse your C++ headers for your very
own purposes,
using the API Extractor library could help a lot. Unfortunately there
is not much documentation
on this, beside the source code that uses it: GeneratorRunner and Shiboken.

As a side note API Extractor could be modified to generate a initial
type system description
for a given set of C++ headers. Hmm...

On 5 July 2010 10:55, Ariel Manzur <pun...@gmail.com> wrote:
> Hi..
>
> I'm working on a project where I need to parse a bunch of c++ headers
> and generate some code (a couple of small structs and functions for
> each type, method and class member). Is there any documentation on how
> to do this? All I could find was stuff that talks about XML, but I
> still don't know to feed it code and go through the resulting data.
> Are there examples?
>
> Thanks..
>
> Ariel.
> _______________________________________________
> PySide mailing list
> PySide@lists.openbossa.org
> http://lists.openbossa.org/listinfo/pyside
>



-- 
Marcelo Lira dos Santos
INdT - Instituto Nokia de Tecnologia
_______________________________________________
PySide mailing list
PySide@lists.openbossa.org
http://lists.openbossa.org/listinfo/pyside

Reply via email to