C++代码到类图

标签 c++ class-diagram

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

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

问候, 阿杰

最佳答案

例如氧气

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

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.

它创建的图形如下


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

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

关于C++代码到类图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2591025/

相关文章:

c++ - memcpy 定义的位置

C++ Anagram Maker 错误

策略模式的 UML 类图

class - 如何在 UML 中指定 "one at a time"?

java - 这个类图是由什么生成的?

c++ - 如何使用 Visual Studio 2012 构建 cppunit

c++ - OpenCV 人物检测样本崩溃

c++ - BST isBST() 解释

c++ - 如何在 UML 中对两个 C++ 类(在不同线程中)之间的消息接口(interface)进行建模?

typescript - 如何在 VS Code 中生成 TypeScript UML 类图?