0

I want to draw class hierarchies for some C++ projects. I have the information in the following format in files.

class x: public Y

class Z: public Y

class R: public X .....and so on..

I have around 1000 class for the project. Can anyone suggest how should I go about doing it... I mean what tools... what process?

jabaldonedo
  • 25,822
  • 8
  • 77
  • 77
Anup Buchke
  • 5,210
  • 5
  • 22
  • 38

6 Answers6

3

Doxygen can do this (and a lot more, like call graphs).

You can get it (and instructions on how to use it) here.

albert
  • 8,285
  • 3
  • 19
  • 32
Cubic
  • 14,902
  • 5
  • 47
  • 92
  • Note you may also need to install GraphViz to render some of Doxygen's diagram types. Information on the Doxygen site. – Clifford Jun 16 '13 at 20:00
2

I use Doxygen for class diagrams and hierarchy.

albert
  • 8,285
  • 3
  • 19
  • 32
Tyler Jandreau
  • 4,245
  • 1
  • 22
  • 47
2

Indeed Doxygen is greet for generating documentation from code. If you need a tool to make easily a class diagram (online), you can take a look at GenMyModel.

albert
  • 8,285
  • 3
  • 19
  • 32
Xaelis
  • 1,609
  • 10
  • 17
1

You could use UML diagramming tools. There are a specific category called Unified Modelling Language. In our school we used Rational Rose for that. http://www.ibm.com/developerworks/rational/downloads/

And a point to note., I haven't done that, But I heard that if you drawn a design with that toos., then could make a skeleton of your code. i.e It could automatically create that much classes and its derivatives, methods, data variables.

Then you need to write the definitions in that auto generated skeleton. So, saving lot of manual works.

http://www-01.ibm.com/software/rational/uml/

Muthu Ganapathy Nathan
  • 3,199
  • 16
  • 47
  • 77
1

For reverse engineering/documenting I'd suggest Doxygen, but if you want full UML modelling then Umbrello may fit the bill (Linux only, though I have sucessfully used it in a VM on Windows).

Clifford
  • 88,407
  • 13
  • 85
  • 165
1

First, take a look to uml modeling. Also, see related question https://stackoverflow.com/questions/390438/good-free-uml-tool-for-java-eclipse. Another tool is dia.

Community
  • 1
  • 1
Mihai8
  • 3,113
  • 1
  • 21
  • 31