Skip to content

aaab01/cpp2uml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpp2uml

a utility to show UML from c++ source file

usage

  • python cpp2uml.py any_source_dir/*.hpp > uml.txt
  • java -jar plantuml.jar uml.txt
  • generated demo.png at current directory, the example show as below.

Requirements

Issue

  • Only .hpp & .cpp file name accepted.
  • It doesn't work when Class definition like below format(definition and its parent has been splited mult-line).
class Camera :
    public CameraBase<Camera>,
    public BnCameraClient
{
public:
  • enum is discarded

  • struct definition in Class would be discarded.

class example {
    struct Header {
        uint32_t type;
    } header;
};

image

About

a utility to show UML from c++ source file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages