Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delphi 7 : how to generate class hierarchy?

I am seeking to understand someone else's code in Delphi 7 (I suspect that newer version have this built in, but I don't want to spring > $1k for the newest version).

Are their any (preferably FOSS) tools which will help me generate a class hierarchy diagram?


Actually, the class browser in GExperts is ok. Maybe not as good as the accepted answer, but just one of a great collection of tools

like image 833
Mawg says reinstate Monica Avatar asked Jan 12 '11 23:01

Mawg says reinstate Monica


3 Answers

You can use ESS-model from SourceForge.
If you Load and .PAS (also .DPR, .CLASS,...) with some classes this program generate a Class Diagram and some Documentation. It's free and you can access to code source. alt text

Regards

like image 175
Germán Estévez -Neftalí- Avatar answered Oct 18 '22 16:10

Germán Estévez -Neftalí-


AFAIK ModelMaker 6.2 was included with Delphi 7, it's a UML tool. You can import your source code in it and generate class diagrams etc, I really don't remember anymore all of it's features, but I do remember that ModelMaker is awesome tool and it's sure worth a look.

Update: Model Maker (now MMX) is now free for all supported Delphi IDEs

like image 36
Antonio Bakula Avatar answered Oct 18 '22 16:10

Antonio Bakula


You can take a look at our SynProject tool.

Synopse SynProject is an open source application for code source versioning and automated documentation of Delphi projects.

There is a pascal source parser, which will create all classes hierarchy documentation.

And it's much more than a parser: you can write the whole Specifications/Architecture/Design/Test/Release documents list in an integrated manner.

There are some tutorials, screenshots and resulting documentation sample in the above link.

like image 37
Arnaud Bouchez Avatar answered Oct 18 '22 14:10

Arnaud Bouchez