how to export class diagram from cplusplus source code using rational software architect 9.0

497 Views Asked by At

I am using rational software architect 9.0. It uses like eclipse. I create a makefile project from existing code. That means I already have the c++ source code. Now I want to generate class diagram from these code. I find an article in chinese to describe how to do it using rose on website. But I dont know how to follow those steps. Because I did not find views described in those steps on my current edition, like, component view.

An eclipse is installed during installing RSA. I can open eclipse directly from the installed folder of RSA. I can import the existing source code as a project. I can see the class view from one of a header file. But just one header and one class. I dont know how to get the relation diagram of all classes from source code (hearder files or all source files including cpp files?).

I can open RSA from shortcut in desktop. I am using windows 10. But It seems not use the same workspace with eclipse. I can create an empty UML project. But what about the source code?

I still dont know how to get class diagram. Thread shows how to do it in EA instead of RSA 9.0

Now what I have is:

RSA9.0 which is more looks like eclipse.

source code looks like:

server
├───folder1
│     ├───ffirst1.h
│     ├───ffirst1.cpp
│     ├───Main.cpp
│     ├───makefile
│     ├───fsecond1.h
│     └───fsecond2.cpp
│
├───folder2
│     ├───sfirst1.h
│     ├───sfirst1.cpp
│     ├───ssecond1.h
│     ├───ssecond2.cpp
│     ├───Main.cpp
│     └───makefile
├───manager.sh
└───makefile

how to export class diagram from cplusplus source code(header files?) using rational software architect 9.0?

Does anyone can give me steps to this problem?

Any advices or experiences would be appreciated. Thanks

1

There are 1 best solutions below

0
On

"Working with C++ Visualization in IBM Rational Systems Developer" should be one of the answers. It might be not the perfect one. But it really can reverse class diagram from header files using visualization feature on the right click shortcut menu. Visualize > Add to New Diagram File > Class Diagram. The cplusplus project should already in the workspace, of course. At first, you should create one class diagram from a header file to a new class diagram file, then add other class diagrams from other header files in to this existed class diagram file.