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:

  1. Visual Studio Integration
  2. Kawa Integration
  3. Shell Mode or from a script
    - Open a command shell
    - rsm   Options   Files   >   output

Methods of file processing:

  1. Direct File name
    rsm Options /proj/src/filename.cpp
  2. Wild Cards
    rsm Options /proj/src/*.cpp
  3. Recursive descent of a directory tree
    rsm Options -r h,cpp /proj/src
  4. Reading from a list of files or directories
    rsm Options -F /proj/filelist.lst

Modes of Output:

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.

  1. CSV Output -A
    rsm -A -To -TN *.h *.cpp > class_summary.csv
  2. HTML Output -H
    rsm -H -To -TN *.h *.cpp > class summary.htm
  3. Text Output 
    rsm -To -TN *.h *.cpp > class summary.txt

Methods of Output

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.

  1. Report output to the screen or stdout
    rsm -A -To -TN *.h *.cpp
  2. Report output redirected to a file
    rsm -H -To -TN *.h *.cpp > class summary.htm
  3. Report output routed directly to a file
    rsm -A -To -TN -O class_summary.csv *.h *.cpp

divider.jpg (1531 bytes)

(Last Update: August 26, 2000 )
Copyright 1997, M Squared Technologies