Re: [pygccxml-development] Tag for Methods to bind ?
Brought to you by:
mbaas,
roman_yakovenko
From: Ben S. <bsc...@lu...> - 2008-07-07 18:14:47
|
I had this same idea. Instead of putting the annotations inside the comments, I made Qt style macros which I prepended to my function/enum/field declarations. Something like META_CLASS() class A { META_METHOD() APtr create(); // No annotations before this one so it isn't exposed float * getInternals(); .... } The macros turn into __attribute((gccxml("META_XXX"))); when a preprocessor flag is defined and turns into nothing otherwise. The cool thing is that you can have additional annotations work by using macro inlining... I can't find the code anymore but it did work... Cheers Ben > -----Original Message----- > From: pyg...@li... > [mailto:pyg...@li...] > On Behalf Of Damien Fagnou > Sent: Monday, July 07, 2008 5:07 AM > To: pyg...@li... > Subject: [pygccxml-development] Tag for Methods to bind ? > > Hi , > > we are thinking of using py++ to create binding to one of our > libraries . > this is quite a large one 100+ class . py++ look like its > doing what we need and initial test are very promising . > > one of our idea was to be able to explicitly 'tag' the > methods/class to export . > I though we might use a tag in the doxygen comments . but I > can't really see if that is possible there is the extract_doc > scheme , would there be a way to filter class and methods > based on doxygen docs ? > > one other way we though was to run doxygen using xml out , > sparse the result and extract a list of class and methods > from there. but the 2 step workflow is not as nice and > doxygen doesn't use the same parser ( I think .. ) > > example : > > /// base class for particle > /// BINDABLE > class A > { > /// creation methode > /// BINDABLE > APtr create() > > /// this class is not accessible from python > float * getInternals(); > > private : > A() {}; > } > > in any case thanks a lot for py++ it look like its gonna save > us a lot of time ! > > Damien > > > > > > -------------------------------------------------------------- > ----------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source > project, along with a healthy diet, reduces your potential > for chronic lameness and boredom. Vote Now at > http://www.sourceforge.net/community/cca08 > _______________________________________________ > pygccxml-development mailing list > pyg...@li... > https://lists.sourceforge.net/lists/listinfo/pygccxml-development > > |