How to document external file in doxygen?

Member

by domenico , in category: Third Party Scripts , 4 months ago

How to document external file in doxygen?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by filiberto , 4 months ago

@domenico 

To document an external file in Doxygen, you can use the ile command followed by a brief description of the file. Here is how you can document an external file in Doxygen:

  1. Place a comment at the beginning of the external file you want to document. Start the comment with /*! or /** to indicate a Doxygen comment block.
  2. Use the ile command followed by the name of the file within angle brackets, like this: ile
  3. Provide a brief description of the file after the ile command.
  4. Optionally, you can also include other Doxygen commands to provide more detailed documentation about the contents of the file, such as rief, author, date, and so on.


Here is an example of how to document an external file in Doxygen:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
/*!
 * ile external_file.h
 * rief This file contains the declaration of the ExternalClass class.
 *
 * author John Doe
 * date July 2021
 */

class ExternalClass {
  // class definition...
};


After documenting the external file, you can generate the documentation using Doxygen, and the external file will be included in the generated documentation along with the specified description and other information.

Related Threads:

How to document application source file using doxygen?
How to document "enable_if" functions with doxygen?
How to change the config file for mathjax in doxygen?
How to document specialized c++ constructor with doxygen?
How to change doxygen to not use any file extension?
How to load external config file for pagination in codeigniter?