60 likes | 169 Views
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
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.