如何使用 Rational Rose 从源代码重新设计设计
我想使用 Rational Rose 从现有源代码创建类图。
我有 VC++ 6 MFC 项目,并且安装了 Rational Rose Enterprise Edition 版本 2003.06.16。现在我想重新设计该项目以从源代码创建设计(类图)。请帮助我逐步完成此操作,我无法从互联网上获得好的文档。已经这样做过的人可以帮助我......
I would like to create class diagram from existing source code using rational rose.
I have VC++ 6 MFC project and I installed Rational Rose Enterprise Edition Version 2003.06.16. Now I would like to re-engineering the project to create design(class diagram) from the source code. Pls help me step-by-step process to do this, I couldn't get a good doc from internet. One who did this already can help me...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这很简单。您创建一个新项目,添加一个组件(代表您的应用程序),在属性中指定源文件,单击“逆向工程”和“Presto:混乱的混乱”。然后你开始拖动东西,将相关组移动到不同的视图,等等。
我会警告你,你可能会对你得到的模型感到失望。除了 MFC 组件(您需要将其隐藏起来,以免它们使您的模型变得混乱)之外,您可能会发现大多数应用程序都是一堆不相关的类。至少我通常是这样发现的。
这是一个 Rational Rose C++ 教程 [DOC],应该让你开始吧。
It's pretty simple. You create a new project, add a component (represents your app), specify the source files in the properties, click Reverse Engineer and Presto: A tangled mess. Then you start dragging things around, moving related groups to different views, etc.
I will caution you that you may be disappointed with the model you get. Apart from the MFC components (which you will want to tuck away so they don't clutter your model), you may find that most of the app is a bunch of unrelated classes. At least that's what I usually found.
Here's a Rational Rose C++ tutorial [DOC] that should get you started.