How to generate C ++ class documents and relationships

Source: Internet
Author: User
Tags doxygen

Write a lotCodeWhat should I do if I want to generate a C ++ class document and diagram? Yes, it is something that is pleasing to the eye to generate the MFC class library.

In general, there are three ways to generate such a document:

  1. Use doxygen to automatically generate documents

    Doxygen can be used across platforms to maintain documents while maintaining code, which is convenient and practical.

    To generate a class relationship diagram, you can use doxygen with graphviz. After graphviz is installed, add the executable directory to the system path, in this way, graphviz can be used in doxygen to generate a class relationship diagram.

    In text editors such as vim and Emacs, macro operations can be naturally used to insert doxygen comments. What if Visual Studio is used, you can also use doxycomment add-in for Visual Studio 2005 or something like this.

    Note the following when using doxygen to generate documents,Source codeThe file encoding must be the same as the doxygen character encoding. Otherwise, the generated file will be garbled. Now this time, of course, is unified with UTF-8 better.

  2. Use the class digoal of Visual Studio

    On msdn, we will introduce how to use class digoal.

  3. Using Visio to draw UML diagrams is not recommended because it is hard to synchronize with the code.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.