

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Project; Professor: Fawcett; Class: Distributed Objects; Subject: Computer Engineering; University: Syracuse University; Term: Spring 2002;
Typology: Study Guides, Projects, Research
1 / 2
This page cannot be seen from the preview
Don't miss anything!


The purpose of this project is to build COM components, using the ATL library, that record, in an XML file, the results of analyzing one or more source code files. Specifically, you will analyze the cyclomatic complexity^1 of each function in each file presented and record, in an XML file, the following: User identifier File name A sequence of cyclomatic complexities (integer numbers greater than zero) The sum of the cyclomatic complexities The second, third, and fourth items are repeated for each file analyzed. You are required to support analysis of more than one set of files. You will do this by reading an XML analysis file at program start up, reading a list of files from the command line, e.g., *.h *.cpp, analyzing them and adding a new element to the analysis file with the three items listed above for the current user id, and saving the modified analysis file over the original.
Your CYCLO program:
lines for the current userid. Each time the program is run, there shall be additional lines of analysis output for previous userids and for the current userid. To help you understand the display requirements, here is a sample of acceptable output: jDoe: exec.cpp 12, 11, 8 – 31 jDoe: analysis.h 1, 1, 1 - 3 jDoe: analysis.cpp 11, 7, 7, 5, 1, 1 - 32 total: - 66 dSmith: exec.cpp 13, 9, 7, 6 – 35 dSmith: anal.h 1, 1 - 2 dSmith: anal.cpp 11, 7, 7, 5, 1, 1 - 32 total: - 69