From: Mathieu M. <mat...@gm...> - 2008-09-09 09:11:59
|
Hi Philipp, Are you using this python script ? I guess yes. I started using it and discover that it produces documentation such as: %feature("docstring") gdcm::ImageChangePhotometricInterpretation::~Im ageChangePhotometricInterpretation " gdcm::ImageChangePhotometricInter pretation::~ImageChangePhotometricInterpretation() "; which swig 1.3.33 fails to digest. Do you have any idea what I can do for long classname / member function name ? Thanks On Tue, Aug 12, 2008 at 8:52 PM, Philipp Kraft <oe...@gm...> wrote: > Hi Jack, > > generally it ist he %feature("docstring") and %feauter("autodoc") line you > can use. It is documented in Section 30.10 in the SWIG 1.3 doc. But if you > are using doxygen for API doc generation there is a python script by Prabhu > Ramachandran (thanks for that), that is generating docstrings from > doxygen-XML output. You will find it here: > http://trac.tuebingen.mpg.de/shogun/browser/branches/structure/src/.doxy2swi > g.py?rev=3227 > > Philipp > >>Hello, >> >>Is there a flag to make swig generate __doc__ strings in python? >> >>If not, it seems like it would be easy to add (maybe when swig is > generating >>the python wrapper, grab the documentation system string and stick it in >>between the triple quotes at the beginning of the function declaration). >> >>Also, sorry if this has been asked already. Google wasn't helping and >>sourceforge search is down for some reason. I know one guy posted this >>question in 2001. >> >>Thanks! >>Jack > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Swig-user mailing list > Swi...@li... > https://lists.sourceforge.net/lists/listinfo/swig-user > -- Mathieu |