C++ code to class diagram

孤人 提交于 2019-12-04 05:53:59
VolkerK

There's e.g. doxygen

http://www.doxygen.nl/manual/features.html says:

Uses the dot tool of the Graphviz tool kit to generate include dependency graphs, collaboration diagrams, call graphs, directory structure graphs, and graphical class hierarchy graphs.

It creates graphs like


(from http://www.vtk.org/doc/nightly/html/structvtkKdTree_1_1__cellList.html, an example listed on the doxygen site)

Since the question was about class diagrams you might also be interested in the UML_LOOK flag that makes the ouput a bit more uml-like.

Class diagrams are networks, not hierarchies. There a re quite a few tools that can generate them - my favourite is Enterprise Architect, but it isn't free (there is a trial).

Umberello is the Linux application that generate diagram from code.

Björn Pollex

Doxygen can create class-diagrams. However, I believe these diagrams are only to show the network of classes, they do not list methods and members and such.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!