Visual Studio - 从 C++ 项目生成 UML
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13452507/
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
Visual Studio - Generate UML from a c++ project
提问by Maik Klein
Currently I am reading though the cryengine gamecode. It is huge not very well documented. It would be really good if I could create an UML diagram from the project file.
目前我正在阅读cryengine游戏代码。它很大,没有很好的记录。如果我能从项目文件创建一个 UML 图,那就太好了。
I already found some tools to generate an UML diagram from c++ code, the problem is that the cryengine project is really huge and it would take a lot of time to do this.
我已经找到了一些从c++代码生成UML图的工具,问题是cryengine项目真的很大,需要很多时间才能做到这一点。
Do you think this is possible?
你认为这可能吗?
回答by billz
Visual Studio has the build-in UML generator.
On Visual Studio project, select Class View
, right click on the namespace, select View Class Diagram
. It may take a while to generate UML diagrams if your project is big.
Hope this helps.
Visual Studio 具有内置的 UML 生成器。在 Visual Studio 项目上,选择Class View
,右键单击命名空间,选择View Class Diagram
. 如果您的项目很大,生成 UML 图可能需要一段时间。希望这可以帮助。
回答by ChrisW
You may be disappointed by the result: a huge mess of C++ may render as an equally hugely complicated UML diagram.
您可能对结果感到失望:大量的 C++ 可能会呈现为同样非常复杂的 UML 图。
Nevertheless, one tool that designed to help visualize large C++ code bases is Understand.
然而,一种旨在帮助可视化大型 C++ 代码库的工具是理解。