Product Links
Detailed Info

Generate your own reports with PERL in Understand for Ada

Understand for Ada includes a PERL API that you can use to write scripts and programs which make custom documentation. Each API gives you access to the same API we used in developing Understand for Ada. With either API you can answer many questions specific to your organization, and generate custom documentation with any look and feel and format that you prefer.

PERL
The complete documentation for the PERL module can be found here.

Here is a short example script reporting the Cyclomatic Complexity metric for each subunit of code:

use Understand;
$db = Understand::open("test.udc");
# lookup a specific metric
foreach $func ($db->ents("Function")) {
$val = $func->metric("Cyclomatic");
# only if metric is defined for entity
print $func->name()," = ",$val,"\n" if $val;
}


Numerous example scripts and other information can be found here.
©1996-2007 Scientific Toolworks, Inc. All rights reserved.