views:

114

answers:

4

Is there is a way I can generate a hierachial class diagram from C++ code. My code is spread over 5 to 6 .cpp files.

I would like to know if there is any free tool for the same.

Regards, AJ

A: 

Doxygen can create class-diagramms. However, I believe these diagramms are only to show the network of classes, they do not list methods and members and such.

Space_C0wb0y
+4  A: 

Class diagrams are networks, not hierarchies. There a re quite a few tools that can generate them - my favourite is Enterprise Architect, but it isn't free (there is a trial).

anon
+1 for pointing out networks
Space_C0wb0y
+7  A: 

There's e.g. doxygen

http://www.doxygen.org/features.html says:

Uses the dot tool of the Graphviz tool kit to generate include dependency graphs, collaboration diagrams, call graphs, directory structure graphs, and graphical class hierarchy graphs.

It creates graphs like


(from http://www.vtk.org/doc/nightly/html/structvtkKdTree_1_1__cellList.html, an example listed on the doxygen site)

VolkerK
+1  A: 

Umberello is the Linux application that generate diagram from code.

SjB