生成类图的工具
Tool to generate class diagram?
本文关键字:工具 更新时间:2023-10-16
我有这些c++类:
class sales{
private:
float dollar[3];
public:
void getData(float f1,float f2, float f3){
dollar[0]=f1;// sales of first month
dollar[1]=f2;// sales of second month
dollar[2]=f3;// sales of third month
}
void putData(){
int count=0;
while(count!=3){
cout<<dollar[count]<<"t$"<<endl;
count++;
}
}
};
class publication:public sales{
private:
string PubName;
int PubYear;
public:
void SetName(string s){
PubName=s;
}
string GetName(){
return PubName;
}
void SetYear(int y){
PubYear=y;
}
int GetYear(){
return PubYear;
}
};
class book:public publication{
private:
string Author;
public:
void SetAuthor(string a){
Author=a;
}
string GetAuthor(){
return Author;
}
};
class tape:public publication{
private:
string singer;
public:
void SetSinger(string s){
singer=s;
}
string GetSinger(){
return singer;
}
};
我想自动生成一个类图,是否有在线有用的工具来做到这一点?
StarUML有一个逆向工程选项,它将根据您的源代码生成UML图(它是免费的,但不是在线的)。但通常情况下,在编写任何一行代码之前,您应该先制作一个图表。
使用氧,它易于使用,为您提供开箱即用的图形,并且非常适合记录您的代码-最重要的是:它是免费的。
有一些(寻找反向代码工程)。我个人使用企业架构师从http://www.sparxsystems.com/
这可能比您需要的更多,但您可以尝试ArgoUML:
ArgoUML主页
如果你使用Web start链接,它几乎就像一个在线工具。
相关文章:
- 使用外部SDK工具链文件在VisualStudio上生成项目编译错误
- 在clang++预处理器中确定gcc工具链版本
- Visual Studio(或任何其他工具)能否将地址解释为调用堆栈(boost上下文)的开头
- 参数化自定义CMake工具链
- 如何在QT中的自定义视频小工具t上绘制矩形
- 使用 C++ 和 i2c 工具从虚拟 i2c 写入和读取
- 用于C++的静态二进制检测或二进制重写工具和框架
- 在OSX上使用CMake将Adobe的XMP工具包构建为共享库的最简单方法是什么?
- AWS IoT 开发工具包:通过 TCP 端口 443 使用 MQTT
- 在官方张量流 resnet50 模型上运行 tflite 精度工具
- Q没有管理权限的 exe 无法启动维护工具
- C++合并排序可视化工具
- 为Bazel工具链指定sysroot
- 在自动工具中包含用于不同bin_Programs的不同库
- 如何使用MSVC 2019创建和使用Qt 5.14.0自定义小工具插件
- Eclipse CDT clang 工具链 - 无法从链接器选项中删除 stdlibc++,但可以添加 libc++,E
- 使用不同的工具时,Eccodes 会产生不同的结果
- Clang 工具,用于提取给定 lambda 类型的 lambda 主体
- 构建LLVM 10 C++工具链的问题
- 使用即将推出的C++反射工具打印类型的全名