问题
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