pygccxml <a href="http://www.language-binding.net/pygccxml/pygccxml.html">http://www.language-binding.net/pygccxml/pygccxml.html</a><br><br>It uses gccxml to compile your source code into xml, and then makes all of your source code available to you via a high level and convenient query interface in python.<br>

<br><div class="gmail_quote">On Tue, Aug 18, 2009 at 5:03 PM, Ludo <span dir="ltr"><<a href="mailto:olivier.anospamrnospamnnospamanospamenospamz@affaires.net">olivier.anospamrnospamnnospamanospamenospamz@affaires.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br>
<br>
I work in a very large project where we have C++ packages and pieces of python code.<br>
<br>
I've been googleing for days but what I find seems really too complicated for what I want to do.<br>
<br>
My business is, in python, to read enum definitions provided by the header file of an c++ package.<br>
Of course I could open the .h file, read the enum and transcode it by hand into a .py file but the package is regularly updated and thus is the enum.<br>
<br>
My question is then simple : do we have :<br>
        - either a simple way in python to read the .h file, retrieve the c++ enum and provide an access to it in my python script<br>
        - either a simple tool (in a long-term it would be automatically run when the c++ package is compiled) generating from the .h file a .py file containing the python definition of the enums ?<br>
<br>
Thank you for any suggestion.<br><font color="#888888">
-- <br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br>