![]() |
Doxygen: attaching abstracts to examples
Tue, 01/27/2009 - 13:39 — moshe
Today's piece follows yesterday's and describes how to tack on abstracts to examples using Doxygen. 1. Prepare a text file that contains only abstracts and associates each abstract to the example code it describes. Let's call it examples_doc. The example shows two abstracts for two examples: /*! \example register.cc There are two possible scenarios when registering command line arguments.
*/ /*! \example ScopesDef.cc This example demonstrates: Ensure that the name of the example following the \example tag is exactly the name of the example stored. Referencing ScopesDef.cpp when the name is ScopesDef.cc will not produce the results you need. 2. In the list of inputs referenced by the INPUT configuration parameter, add examples_doc. Now run Doxygen and voila. |