The Design of Software (CLOSED)

A public forum for discussing the design of software, from the user interface to the code architecture. Now closed.

The "Design of Software" discussion group has been merged with the main Joel on Software discussion group.

The archives will remain online indefinitely.

C++ to UML

Is there a tool that parses C++ source code (static analysis) and outputs an UML diagram, or anything that would make your life easier when producing an UML diagram?
Open source would be ideal, but commercial tools are ok too.
I need such a tool for investigating some legacy code that I've inherited and which has no documentation.
Mike S
Tuesday, May 08, 2007
 
 
I saw an ad for this in Dr. Dobbs, but haven't used it myself:


Understand for C/C++

http://www.programmersheaven.com/download/38774/download.aspx
Tom Dial Send private email
Tuesday, May 08, 2007
 
 
Yes.

Understand for C++ (www.scitools.com) is okay at this, though it makes a better source browser.

UMLStudio www.pragsoft.com is excellent at this, and will 'forward' engineer from diagram to code also.  UMLStudio is also an excellent UML diagram generating toolset.

They're about $500 per seat each -- with large educational discounts.
AllanL5
Tuesday, May 08, 2007
 
 
Doxygen does a nice job, and it's free to boot:

http://www.stack.nl/~dimitri/doxygen/
Jeroen
Tuesday, May 08, 2007
 
 
You can try Enterprise Architect, available at http://www.sparxsystems.com.au/

A free demo is available, so you can check how it works on your source code.

Cheers,
Luigi
Luigi Poderico Send private email
Tuesday, May 08, 2007
 
 
sparxsystems enterprise architect
http://www.sparxsystems.com.au/
US $199  for the professional edition
nullptr
Tuesday, May 08, 2007
 
 
isn't there a reverse-engineering option in visual studio that can produce uml diagram? Not used it since forever so i could be wrong...
Daniel Send private email
Wednesday, May 09, 2007
 
 
> isn't there a reverse-engineering option in visual studio that can produce uml diagram? Not used it since forever so i could be wrong...

Thwere is a Visio integration tool in VS2003 does this (you can get it from MSDN), but nothing native to the IDE.

However, the Professional Edition of Visual Studio 9.0 ("Orcas") includes a class designer which can reverse engineer existing native C++ code - although you can't edit the diagrams once generated in this version.

At leasty they are putting it back, though (it's been absent since VS2002). Visual Studio 10.0 (2009?) should include an editable version, but that's some way off yet.
Anna-Jayne Metcalfe Send private email
Wednesday, May 09, 2007
 
 
pygccxml ( http://language-binding.net/pygccxml/pygccxml.html )

This tool has limitation, you will be able to produce only a class diagram.
Roman Yakovenko Send private email
Monday, May 14, 2007
 
 
Try StarUML http://staruml.sourceforge.net/en/. It is free and it can reverse engineer C++ (C# and Java) Code .
SomeOne
Friday, May 18, 2007
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz