Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I generate UML class diagrams from C++ source files? [closed]

With doxygen I can generate nice diagrams but doxygen lacks a deeper analysis of the relationships between classes. It recognizes derivation but other relations are not understood by the tool. Which better utilities are there (commercial or not) that generate more complete UML class diagrams out of C++ source files?

The tools available for C#/Java are a bit better but do not interest me right now.

like image 246
jdehaan Avatar asked Sep 23 '10 15:09

jdehaan


1 Answers

For parsing C++ code, the best tool I have used is BoUML. It is not perfect, and it won't generate the diagrams for you, but it does understand the relationships. If you pull two classes into a class diagram, it will automatically draw the relationships, and it allows you to grow the diagram by selecting a particular class and having the tool bring up related classes (both classes that depend on the selected one and classes that the selected one depends on).

like image 171
David Rodríguez - dribeas Avatar answered Sep 28 '22 01:09

David Rodríguez - dribeas