How to generate UML for C++ code in windows system?

J

jin zhang

I am debugging somebody else's code, it is too hard to read it without any
doc.
Are there any UML generater which can work on windows that I can use?
Please help.

Thank you .
 
P

Peter van Merkerk

jin said:
I am debugging somebody else's code, it is too hard to read it without any
doc.
Are there any UML generater which can work on windows that I can use?

Doxygen (www.doxygen.org) in combination with graphviz
(www.graphviz.org) can generate nice documentation with class and
collaboration graphs from C++ source code.

Also many UML tools have a reverse engineering feature, though
personally I prefer Doxygen for this kind of thing.
 
M

Matt

Doxygen (www.doxygen.org) in combination with graphviz
(www.graphviz.org) can generate nice documentation with class and
collaboration graphs from C++ source code.

I will be looking to set this up in the near future. I do not yet
seen any references for setup instructions for such a combination
"doxygen + graphviz". Does anyone have any pointers for such a thing?
If not, I'm hoping it will be easy for me to pick up.

I am hoping to generate overall UML-based class diagrams that describe
my various C++ code bases.

Thanks for any help,
-Matt
 
M

Matt

I will be looking to set this up in the near future. I do not yet
seen any references for setup instructions for such a combination
"doxygen + graphviz". Does anyone have any pointers for such a thing?

To answer my own question:

One must install graphviz per their install instructions (I did so on
a WinXP system using the Windows binaries...I wasn't sure whether or
not to put the "thirdparty" stuff in, but I did so right on top of the
graphviz install dirs).

Then one must set the appropriate DOT* variables in the Doxyfile
config file, namely the HAVE_DOT variable. 'dot' or 'dot.exe' is
found in the graphviz distribution. Put dot.exe's path in the system
PATH variable on Windows (alternative, point DOT_PATH to the to this
same path...but I could not get this to work).

After doing all this I was able to make some nice graphs. There are
other Doxyfile config settings/variables that can produce more or less
graphical stuff.

-Matt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top