By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,045 Members | 2,120 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,045 IT Pros & Developers. It's quick & easy.

Auto-generate C++ to UML "overall class hierarchy"?

P: n/a
Hello,

I would like to generate what I call an "overall class hierarchy" in
UML automatically derived from my C++ code source.

An example of what I seek:

http://biz2tek.com/tmp/overall-class-hierarchy-sde

(This link may be temporary; email me if you can't get access to it, I
can provide a copy.) This was derived from Java source; there seem to
be many Java-oriented tools for such a thing, but fewer for C++.

Can anyone provide recommendations, suggetions, pointers, further
reading?

My initial tool requirements:

* Inexpensive: less then $200, or even better open-source or
some sort of shareware
* Eclipse plugin
* WindowsXP port
* Optional Linux port

I'm not yet requiring "forward engineering" (model to code), but I
might be interested in the future.

I include an email to the Doxygen-users email list detailing how I am
trying to use Doxygen to do this. I have also tried
Visual-Paradigm.com's SDE (with ecplise), but I have yet to get it to
work for my C++ stuff. The attached .gif file shows SDE (plugged into
Eclipse 3.0.1) displaying what I call an "overall class hierarchy" for
a set of Java source.

More details in the email below, if you are interested.

I have been researching other possible tools, but I was first
interested in getting community feedback before I try more things on
my own.

Thanks for any help!
-Matt
------------------ included email --------------------
Date: Sun, 28 Nov 2004 19:52:57 -0600
To: do***********@lists.sourceforge.net
From: Matthew England <##############>
Subject: How to display an "overall class hierarchy" for C++?

Hello,

I am a Doxygen newbie, please pardon any faqs.

I would like, with Doxygen (along with graphviz) to generate what I
call an "overall class hierarchy" in UML automatically derived from my
C++ code source.

More details:

I hoping to make something similar to what is shown in the attached
graphics file, which was created with an eval copy of the Professional
flavor (I think) of Visual Paradigm SDE (as an Eclipse plugin). This
represents what I call an "overall UML class hierarchy" (please
forgive me if I'm butchering the terminology) of a Java class set--it
happens to represent the work from first chapter of "HeadFirst Design
Patterns," if you happen to know the book.

I see when turn on all the "dot tool" section Doxygen variables, I get
a lot of nice graphical displays, but I have yet to see anything that
represents an "overall" of all my C++ classes in my project and how
they relate to one another.

Is there a means to do this? (Maybe it's already in my generated
Doxygen output, and I simply have not yet discovered it? I use the
Eclipse Doxygen plugin with Doxygen 1.3.9.1.) If so, is there also a
means to tailor such an output to decide which classes are generated
with the "overall" hierarchy, and which ones are not?

It's clear that I will be using Doxygen regardless of this answer, for
it provides a wealth of other wonderfully-organized information about
my C++ source code. However, if I can't get an overall class hierarchy
in ways that I'm hoping, I might followup this email list later with
questions about other recommended UML tools that might do such a
thing...and/or augment Doxygen somehow. (Visual-Paradigm's SDE might
be one of them, but I have yet to get it to work as well on C++ as it
did on the Java source...and at $600 for the
generate-automatically-the-full-UML-diagram price, it's pretty heavy
on my budget.)

Thanks for reading this far...and thanks for any help.

-Matt

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
Jul 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
fyi, I started a similiar discussion thread at:

http://forums.objectsbydesign.com/sh...&threadid=1210

I have had one helpful reply there (talking about Together and a list
of tools posted on objectsbydesign.com) as well as some additional
comments posted by me.

-Matt
On 29 Nov 2004 16:48:29 -0500, Matt
<ma**@downwithspammers-mengland.net> wrote:
Hello,

I would like to generate what I call an "overall class hierarchy" in
UML automatically derived from my C++ code source.

An example of what I seek:

http://biz2tek.com/tmp/overall-class-hierarchy-sde


[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
Jul 22 '05 #2

P: n/a
The tool you may be looking for is Enterprise Architect, by Sparx
Systems (http://www.sparxsystems.com).

It supports UML2, desktop edition is about 150 USD, you can by a
plug-in for VS .NET to forward/reverse engineer a model, works on
Linux and there's an upcoming plug-in for Eclipse.

Regards,

Javier

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
Jul 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Browse more C / C++ Questions on Bytes