用于从 C++ 代码生成 UML 图的 Eclipse 插件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3155448/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-28 12:12:55  来源:igfitidea点击:

Eclipse plugin for generating UML diagram from c++ code

c++eclipsediagram

提问by tristan

Is there any eclipse plugin that can generate UML/Class Diagram from C++ source code?

是否有任何可以从 C++ 源代码生成 UML/类图的 Eclipse 插件?

采纳答案by VonC

From the list of UML tools, I only see commercial UML editors (with C++ as one of the language reverse engineered), like:

UML 工具列表中,我只看到商业 UML 编辑器(使用 C++ 作为逆向工程语言之一),例如:

In other word, I don't know of a open-source project offering C++ reverse engineered UML diagrams.

换句话说,我不知道提供 C++ 逆向工程 UML 图的开源项目。



nrsmentions in the comments, from the Modelio Wikipedia entry:

nrs在评论中提到,来自Modelio 维基百科条目

The core Modelio software was released under the GPLv3 on October 5, 2011.
Key APIs are licensed under the more permissive Apache License 2.0.

核心 Modelio 软件于 2011 年 10 月 5 日在 GPLv3 下发布。
关键 API 在更宽松的 Apache License 2.0 下获得许可。

Note: it is a standalone app(based on Eclipse RCP), which cannot be added directly in your IDE Eclipse. Eclipse as a plugin.

注意:它是一个独立的应用程序(基于 Eclipse RCP),不能直接添加到您的 IDE Eclipse 中。Eclipse 作为插件。

回答by dublev

This is also not a Eclipse plugin, but the Umbrello UML Modellerfrom KDE is open-source and I've had better results with it than Doxygen or Rhapsody.

这也不是 Eclipse 插件,但是来自 KDE的Umbrello UML Modeller是开源的,我用它获得了比 Doxygen 或 Rhapsody 更好的结果。

回答by Michael Wilson

My Eclipse-Fu is second to... well, everybodies. But I wonder: Could Doxygen be banged in to a shape that would fit? As an automated c++ documentation tool it's pretty slick. Plus, it runs off the command line so I'd imagine it wouldn't be too tough to get eclipse to run it.

我的 Eclipse-Fu 次于……好吧,大家。但我想知道:Doxygen 能被撞成适合的形状吗?作为一个自动化的 C++ 文档工具,它非常灵活。另外,它在命令行之外运行,所以我想让 eclipse 运行它不会太难。

回答by YaP

well, a commercial option is to use rhapsody developer for C++. you do reverse engineering in your source code and there you go.

好吧,一个商业选择是使用 Rhapsody developer for C++。您在源代码中进行逆向工程,然后就可以了。

回答by conTroll

I don't know of any Eclipse Plugins that generates UML class diagram from C++ code. However, BOUML is now commercial, but version 4 was free. You can still find this version in several repos of Linux distributions, it has the best reverse engineering features I've ever seen in a free application. It runs on Windows too, you can still find the installer of BOUML 4 for Windowson the Internet.

我不知道有任何从 C++ 代码生成 UML 类图的 Eclipse 插件。但是,BOUML 现在已商业化,但第 4 版是免费的。您仍然可以在几个 Linux 发行版的存储库中找到这个版本,它具有我在免费应用程序中见过的最好的逆向工程功能。它也可以在 Windows 上运行,您仍然可以在 Internet 上找到BOUML 4 for Windows安装程序