From: Eric K. <eri...@gm...> - 2009-04-09 18:18:26
|
On Thu, Apr 09, 2009 at 18:57:29 +0100, Eric Kow wrote: > This is where Kevin Ollivier of wxWidgets pointed out something > interesting: in the current wxWidgets trunk, it should be possible to > automatically generate the C bindings from the Doxygen XML output. In > fact, he has already done something similar for Python, metadata to > Python objects: > > http://trac.wxwidgets.org/browser/wxWidgets/trunk/docs/doxygen/doxymlparser.py Following up on this, I did svn checkout http://svn.wxwidgets.org/svn/wx/wxWidgets/trunk wxWidgets cd wxWidgets/doc/doxygen ./regen.sh python doxymlparser.py --report out/xml/classwx_button.xml Attached is the XML file (input) and the output of this script. Here is a small extract of the output: Class: wxButton Bases: wxControl Inlcudes: [] Brief Description: And... Method: SetLabel Return Type: void Params: [{u'type': u'const&', u'declname': u'label'}] Prototype: void wxButton::SetLabel(const wxString &label) Brief Description: What can we do with this? -- Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> PGP Key ID: 08AC04F9 |