C++代码到类图
有没有一种方法可以从 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
例如 doxygen
http://www.doxygen.nl/manual/features.html说:
它创建类似
的 图表
(来自 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:
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.
类图是网络,而不是层次结构。有很多工具可以生成它们 - 我最喜欢的是 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).
Umberello 是从代码生成图表的 Linux 应用程序。
Umberello is the Linux application that generate diagram from code.
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.