60 likes | 176 Vues
Doxygen is a powerful documentation system designed for various programming languages including C++, C, and Java. It can generate detailed documentation manuals directly from a set of documented source files, producing outputs in formats like HTML, RTF, hyperlinked PDF, and more. By extracting documentation directly from source code, Doxygen ensures consistency and accuracy. Using special comment blocks, developers can easily annotate their code, making it simple to create comprehensive documentation that includes descriptions, structures, functions, and types. Install Doxygen today to enhance your development workflow!
E N D
Documentation Oded Magid & Dafi Mor
What is Doxygen ? • Doxygen is a documentation system for C++, C, Java and more . . . • Can generate a documentation manual from a set of documented source files. • The outcome is a manual for our code [can be in different formats : HTML (as a web-page), RTF (MS-Word), PostScript, hyperlinked PDF, and manual/help pages]. • The documentation is extracted directly from the sources, which makes it much easier to keep the documentation consistent with the source code.
Installing Doxygen we’ll download the distribution for Windows • First we download
How does it work ? • The main idea is that we use special comment blocks with some additional markings, so doxygen knows it is a piece of documentation that needs to end up in the generated documentation.
…How does it work ? • There are several ways to mark a comment block as a detailed description: /** * ... text ... */ /*! * ... text ... */ /*! ... text ... */ /// /// ... text ... ///
Special commands • \brief Brief description • \struct to document a C-struct. • \enum to document an enumeration type. • \fn to document a function. • \var to document a variable or typedef or enum value. • \def to document a #define. • \typedef to document a type definition. • \file to document a file. • \namespace to document a namespace. • \package to document a Java package.