doxygen
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doxygen [2018/05/02 20:18] – jeferson | doxygen [2018/06/25 19:22] (current) – jeferson | ||
---|---|---|---|
Line 11: | Line 11: | ||
</ | </ | ||
- | asdasd | + | ==== Documenting the code: ==== |
- | asdasdasd | + | The code must be documented in one of the following options: |
+ | |||
+ | 1. C-style comment block | ||
+ | |||
+ | < | ||
+ | /** | ||
+ | * ... text ... | ||
+ | */ | ||
+ | </ | ||
+ | |||
+ | 2. Qt style | ||
+ | |||
+ | < | ||
+ | /*! | ||
+ | * ... text ... | ||
+ | */ | ||
+ | </ | ||
+ | |||
+ | 3. C++-like comment lines | ||
+ | |||
+ | < | ||
+ | /// | ||
+ | /// ... text ... | ||
+ | /// | ||
+ | </ | ||
+ | |||
+ | or | ||
+ | |||
+ | < | ||
+ | //! | ||
+ | //!... text ... | ||
+ | //! | ||
+ | </ | ||
+ | |||
+ | For brief descriptions, | ||
+ | |||
+ | 1. | ||
+ | |||
+ | < | ||
+ | /*! brief Brief description. | ||
+ | | ||
+ | * | ||
+ | | ||
+ | */ | ||
+ | </ | ||
+ | |||
+ | 2. | ||
+ | |||
+ | < | ||
+ | /// Brief description which ends at this dot. Details follow | ||
+ | /// here. | ||
+ | </ | ||
+ | |||
+ | 3. | ||
+ | |||
+ | < | ||
+ | /// Brief description. | ||
+ | /** Detailed description. */ | ||
+ | </ | ||
+ | |||
+ | or | ||
+ | |||
+ | < | ||
+ | //! Brief description. | ||
+ | |||
+ | //! Detailed description | ||
+ | //! starts here. | ||
+ | </ | ||
+ | |||
+ | ==== Creating the documentation: | ||
+ | |||
+ | The documentation can be created by many ways with doxygen. The most general is setting a Doxyfile, i. e., a file which describes the settings to be used by the doxygen documentation system. It can be done by accessing the program repository and typing the command | ||
+ | |||
+ | < | ||
+ | doxygen -g Doxyfile | ||
+ | </ | ||
+ | |||
+ | A standard Doxyfile is created and can be personalized with many options. | ||
+ | |||
+ | To create the documentation file run | ||
+ | |||
+ | < | ||
+ | doxygen Doxyfile | ||
+ | </ | ||
+ | |||
+ | If GENERATE_HTML is set to YES, doxygen will generate HTML output. Then open the index.html file to view the code documentation. For more information about doxygen and personalization issues click [[http:// | ||
+ | |||
+ | You can download the current Doxyfile used by the research group {{: | ||
doxygen.1525292305.txt.gz · Last modified: by jeferson