dmytro.poliarush
dmytro.poliarush

Reputation: 393

How to display aggregation in UML diagram generated by Doxygen for C++ source?

I'm trying to generate UML diagram for 2 very simple classes. The diagram should display composition(class B is composed of class A). However, Composition is not displayed in html documentation generated by doxygen.

I believe there is some option in Doxyfile that should be enabled, but so far I have not found which one it is. Note that class inheritance is displayed properly. But I assume that doxygen should know how to draw composition and aggregation as well.

//a.h
class A{ char a; };

//b.h
#include "a.h"
class B{ A a; };

I expect to see a filled diamond from B to A in class diagram generated by Doxygen, but it not there. Here are some of the extract options set in Doxyfile

EXTRACT_ALL            = YES
EXTRACT_PRIVATE        = YES

Doxygen version is 1.8.16

Upvotes: 2

Views: 591

Answers (1)

wlad
wlad

Reputation: 1

It can be done with UML_LOOK = YES

Upvotes: 0

Related Questions