Mail Archives: djgpp/1998/08/12/15:47:03
"Rogério Guerra Borin" <guerra AT ipt DOT br> wrote:
> Does somebody know any program that, given a C/C++ source file,
> generates automatically documentation (preferably in HTML format) ?
>
> For example, I have a C++ source file like this:
> -----------------------------------------------------------------------------
>
> // [title:"Game Manual"]
> // This is the game manual.
> // [endtitle]
> -----------------------------------------------------------------------------
>
> and would like to generate a file like:
>
> -----------------------------------------------------------------------------
>
> Game Manual
>
> This is the game manual.
> -----------------------------------------------------------------------------
SET edit have a module to do something like that but is oriented for
documenting libraries or large projects.
Basically you divide your stuff in modules or in classes or with any other
criteria. The you add a comment at the start of each file indicating to what
module it belongs or what class is defined there. Then you add comments to
all the functions with a description of what the function does and what
returns (other items can be customized). You don't need to specify the
prototype because the SDG gets it from the source, only for inline members is
needed.
Finally you ask SDG to generate the documentation and SDG will generate
indexes by module, class, file, etc with the list of functions in each
category and a link to a description of each function. SDG will include the
function prototype, file where the function is located and line taking it
from the source.
SET
------------------------------------ 0 --------------------------------
Visit my home page: http://set-soft.home.ml.org/
or
http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013
- Raw text -