C++代码到类图

发布于 2024-08-27 23:00:03 字数 95 浏览 3 评论 0原文

有没有一种方法可以从 C++ 代码生成层次类图。我的代码分布在 5 到 6 个 .cpp 文件中。

我想知道是否有相同的免费工具。

问候, 阿杰

Is there is a way I can generate a hierachial class diagram from C++ code. My code is spread over 5 to 6 .cpp files.

I would like to know if there is any free tool for the same.

Regards,
AJ

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

坠似风落 2024-09-03 23:00:03

例如 doxygen

http://www.doxygen.nl/manual/features.html说:

使用Graphviz工具包的dot工具生成包括依赖图、协作图、调用图、目录结构图和图形类层次结构图。

它创建类似


的 图表
(来自 http://www.vtk.org/doc/nightly/html/ structvtkKdTree_1_1__cellList.html,doxygen 网站上列出的示例)

由于问题是关于类图,您可能还会对 UML_LOOK 标志,使输出更像 uml 。

There's e.g. doxygen

http://www.doxygen.nl/manual/features.html says:

Uses the dot tool of the Graphviz tool kit to generate include dependency graphs, collaboration diagrams, call graphs, directory structure graphs, and graphical class hierarchy graphs.

It creates graphs like


(from http://www.vtk.org/doc/nightly/html/structvtkKdTree_1_1__cellList.html, an example listed on the doxygen site)

Since the question was about class diagrams you might also be interested in the UML_LOOK flag that makes the ouput a bit more uml-like.

暮倦 2024-09-03 23:00:03

类图是网络,而不是层次结构。有很多工具可以生成它们 - 我最喜欢的是 Enterprise Architect,但它不是免费(有试用版)。

Class diagrams are networks, not hierarchies. There a re quite a few tools that can generate them - my favourite is Enterprise Architect, but it isn't free (there is a trial).

江湖正好 2024-09-03 23:00:03

Umberello 是从代码生成图表的 Linux 应用程序。

Umberello is the Linux application that generate diagram from code.

流殇 2024-09-03 23:00:03

Doxygen 可以 创建类图。然而,我相信这些图只是为了显示类的网络,它们没有列出方法和成员等。

Doxygen can create class-diagrams. However, I believe these diagrams are only to show the network of classes, they do not list methods and members and such.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文