Generating UML from C++ code? [closed]

Is there a tool that can parse C++ files within a project and generate UML from it?

0

10 Answers

Here are a few options:

Step-by-Step Guide to Reverse Engineering Code into UML Diagrams with Microsoft Visio 2000 - (office.10).aspx

BoUML -

StarUML -

Reverse engineering of the UML class diagram from C++ code in presence of weakly typed containers (2001) -

Umbrello UML Modeller -

A list of other tools to look at -

13

If its just diagrams that you want, doxygen does a pretty good job.

1

I've developed a tool called Doxygraph which can parse the XML generated by Doxygen and turn it into an interactive UML class diagram which you can view in a web browser or import into any software that can read Graphviz "dot" files.

1

I believe Enterprise Architect can do that.

2

I find that Wikipedia can be a great source of information about such tools, especially for comparison tables. There's a page on UML tools. See in particular the reverse engineered languages column.

UML Studio does this quite well in my experience, and will run in "freeware mode" for small projects.

1

Seems Umbrello produces best UML from C++ code (suggest to use latest version >= 2.22) comparing to command-line autodia for Dia and other tools.

StarUML have not produced good diagrams for me: strange import, not usable, does not work for many people:

0

I have used Rational Rose and Rational Rhapsody for reverse engineering large projects. I would prefer Rational Rhapsody for getting the UML class files for C++ !

Whoever wants UML deserves Rational Rose :)

4

StarUML does just that and it is free. Unfortunately it hasn't been updated for a while. There were a couple of offshoot projects (as the project admins wouldn't allow it to be taken over) but they too have died a death.

2

You Might Also Like