Automatically generate a uml diagram of my c++ code

て烟熏妆下的殇ゞ 提交于 2019-12-13 01:14:59

问题


Some time ago I was a TA in a introductory programming course on Java. We used an IDE called BlueJ which had the nice feature that the overview of your development files was a light-weight UML diagram with 'usage' pointers and inheritance pointers drawn in, this made it easy to see the structure of the program.

My question is the following, Is there a similar framework for c++? or at least a tool that I can have running next to my editor to keep a clear view of my files and how they are organized.

My development platform is a Mac with emacs as my main editor.


回答1:


Do you know about Doxygen and its many options?

In fact, Google's number two hit for Doxygen and UML is this previous StackOverflow question.




回答2:


To process C++ I recommend BoUML, it will not draw the diagrams automatically, but is quite good in parsing C++ code, and you can create new diagrams, if you add classes to the diagram, the relationships will automatically be displayed, or you can add a single class and then ask for dependencies of that class to be added to the diagram.



来源:https://stackoverflow.com/questions/6203015/automatically-generate-a-uml-diagram-of-my-c-code

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