Command Line Processing |
Using the command line program "repc", text and/or html reports can be generated from a previously created Understand for C++ project and database. The database (.udc file) may be created by using either Understand for C++ or the "undc" command line program.
The "repc" command line format is:
repc -db udcfile [report-options] [-quiet]where report-options are one or more of the following:
[-reports_html dir] [-reports_text textfile | -reports_separate dir | ]Each option is described below:
Refer to for more information on the reports generated.
Generate one text file of the specified name with the option -text. Generate multiple text files with the -prefix option and specify a directory path and a common filename prefix. The file extensions of each text file will denote the separate reports. Refer to Report File Naming Conventions for details on the file extensions used for each report.
All available text reports are always generated when this option is specified.
repc -db fastgrep.udc -reports_text textreports.txt
Example to generate multiple text files in subdirectory text_reports:
% repc -db fastgrep.udc -reports_separate text_reportsGenerate html files with the -reports_html option and specify the directory to place the files. Refer to Report File Naming Conventions for more details on the files generated.
HTML reports may be split into multiple files either alphabetically or by number of entities. Specify "size" to split each report into multiple html files (one file per alpha character) or use -htmlsplit and specify the number of entities desired per html file. Or, use -htmlall to create only one html file per report generated.
All available html reports are always generated when this option is specified.
To create one html file per report:
% repc -db fastgrep.udc -html_reports size 0 htmlTo create multiple html files per report, split alphabetically:
% repc -db fastgrep.udc -reports_html htmlTo create multiple html files per report, up to 250 entities per file:
% repc -db fastgrep.udc -reports_html 250 htmlUse the -metric option to create a comma delimited project metrics file which can be used in spreadsheet programs. Refer to Exporting Project Metrics Info for a sample file.
% repc -db fastgrep.udc -metrisc fastgrep-metrics.txtScientific Toolworks, Inc. http://www.scitools.com Voice: (802) 763-2995 Fax: (802) 763-3066 support@scitools.com sales@scitools.com |