RSM Operation
RSM operates from a shell command or as a Visual Studio Tool. You pass various arguments to RSM and file names via shell wild cards, a file list or recursive descent of a directory. The following is a summary of the RSM options and parameters. For complete detail on all the RSM options review the Reports and Options manual pages.
RSM Operation and Syntax is summarized in the help file. This file can be generated by specifying the -h option and rerouting the file to a file, rsm -H -h > rsm_help.htm
Methods of Operation:
Direct File name rsm Options /proj/src/filename.cpp
Wild Cards rsm Options /proj/src/*.cpp
Recursive descent of a directory tree rsm Options -r h,cpp /proj/src
Reading from a list of files or directories rsm Options -F /proj/filelist.lst
RSM emits it output to standard out, which is normally to the screen or terminal, unless it is redirected to a file. This technology allows the user to capture various forms of file outputs. RSM can create CSV, HTML and Text output.
CSV Output -A rsm -A -To -TN *.h *.cpp > class_summary.csv
HTML Output -H rsm -H -To -TN *.h *.cpp > class summary.htm
Text Output rsm -To -TN *.h *.cpp > class summary.txt
RSM can create reports via the following method. The default output method is to the screen or stdout. Users can redirect this output to a file as show in the previous example or use the direct file method for creating report files.
Report output to the screen or stdout rsm -A -To -TN *.h *.cpp
Report output redirected to a file rsm -H -To -TN *.h *.cpp > class summary.htm
Report output routed directly to a file rsm -A -To -TN -O class_summary.csv *.h *.cpp
(Last Update: August 26, 2000
)
Copyright 1997, M Squared Technologies