Relation Analyzer

Welcome to CnPack Relation Analyzer in CnPack IDE Wizards.

This Tool is Used to analyze executable files generated by Delphi, get its packages and units information. And it also can get the relations between packages, and relations between packages and its units.

Analyzed result can be saved to an ARF File. And we can create an SMR file from an ARF file to query/view the relations between the executables and source files later.

For common situation, you can open one or more executable files in "Analyze Executable Files" page and analyze them. analyzed result can be save to an ARF file and re-opened in "View Analyzed Result Files" page.

ARF is generated by analyzed result, which only contains the relations between the executables and pascal source file NAME, NO path information and other file types. For advanced situation, you can open an ARF file in "Edit Source-Module Relations" page to edit it and generate an SMR file, which contains the relations between the executables and full path information of source files. Then you can view SMR files in "View Source-Module Relations" page later.

 

Analyze Executable Files

"Analyze Executable Files" is the basic function of Relation Analyzer. It can open executable files and analyze it to get the names of packages and units in executable files. It's shown as below:

 

 

View Analyzed Result

A saved ARF file can be re-opened here to view its content. This page can view the file relations by executable file or unit. It's shown as below:

 

Edit Source-Module Relations

An ARF file only contents the relations between executable files and Packages/Units file NAME without the path information. If we want to get and maintain a source file-executable file relation database from a project, we can construct an SMR file, filling the package/unit names with full path information. This page is shown as below:

An SMR file contains some source files with full path information and the relations between them and some executable files. To generate a full SMR file, we need an ARF file and a file list. ARF file comes from previous pages, and the file list contains the full path and file names under certain directory, which can be generated from "Files List" Page.

View Source-Module Relations

This page can open an existing SMR file and view it. The page is similar as "Edit Source-Module Relations" shown as below:

Other UI items are similar to those in "Edit Source-Module Relations".

 

Files List

This function is used to generate a source files list under a certain directory for SMR file editing. The page is shown as below. Left is the search result shown as a tree. Right is the file list generated from the tree. The list needs to save to a text file for SMR file editing.

Right click to popup the popupmenu. User can do some common operation to the tree contents. They do not affect the disk files, only the tree contents.

PS. The screenshots in this help document are an example of analyzing executable files of Delphi 5 and its VCL source code files. It's an good example for this tool.

 

Links

CnPack IDE Wizards License

About CnPack

 


Copyrights 2001-2019 CnPack Team