2

I have been working on a large c++ project, and I want to generate a diagram showing the inheritance as well as composition relationship between classes, I have been googling for a long time seeking for a solution. As now, I found a lot of tools (like understand, or vs) that can be used to generate UML diagram showing the inheritance relation but not for the composition. I really need to see the references between each class for understanding the design pattern inside it, is there any suggestions?

alexzzp
  • 419
  • 2
  • 6
  • 15

2 Answers2

2

Doxygen can generate UML diagrams on a per-class basis including inheritance and composition using the DOT tool. It's only a static tool though.

# Modify these settings in your doxygen config file.
UML_LOOK = YES
HAVE_DOT = YES
albert
  • 8,285
  • 3
  • 19
  • 32
pyj
  • 1,489
  • 11
  • 19
0

For me, the issue here is not to find a tool which is able to reverse your c++ code and generating UML class diagrams (take a look here for example). You have to find a tool which reverse your code as compositions and not simply associations

Community
  • 1
  • 1
Red Beard
  • 3,436
  • 1
  • 14
  • 17