Doxygen

Aus Info-Theke
Version vom 6. Dezember 2022, 19:03 Uhr von 84.173.104.65 (Diskussion) (→‎Beispiel)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen

Links

Installation

apt install doxygen doxygen-gui

Konfiguration

cd /my/project
doxywizard

Beispiel

/**
 * @mainpage
 * <h1>Objectives</h1>
 * <ul><li>The package polygeo offers classes for processing geometry problems with points, rectangles and polygons.
 * </li>
 * <li>There is the possibility to draw geometric objects as SVG images in a HTML file.</li>
 * </ul>
 * @file main.cpp
 * Contains the main program.
 */
/**
 * Manages a vertical/horizontal rectangle.
 */
class Rectangle{
    /**
     *  Calculates the the smallest vertical/horizontal rectangle containing all points of the given shapes.
     *  
     *  @param shapes An array of <em>Shape</em> instances.
     *  @param size If lower or equal 0: the array shapes must end with a null entry.<br>
     *  Otherwise: the number of entries in <em>shapes</em>
     *  @param[out] result The result is stored here.
     *  @return The parameter <em>shapes</em> (for chaining).
     */
    static Rectangle&
    combineOutlines (Shape **shapes, size_t size, Rectangle &result);
};