-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
executable file
·64 lines (55 loc) · 1.79 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// main.cpp (ver 1.0) - Source File to test CodeMetricsAnalyzer - Provider of function main() //
// //
// Language : Visual C++, 2010 //
// Platform : Toshiba Satellite (R25-S3503), Windows 7 Professional //
// Application : CSE687 - Project #1 - CodeMetricsAnalyzer, Spring 2011 //
// Author : Harshal Bhakta, Syracuse University. //
// E-mail : harshal.c.bhakta@gmail.com //
// Cell : 714-876-4273 //
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/*
* Module Operations:
* ==================
* - main() : CodeMetricsAnalyzer Application start point.
* - Uses 'CmdLineArgs' to check and store command line arguments.
* - Calls Executive to Analyze files
* - Calls Show to display results.
* Build Process:
* ==============
* devenv CodeMetricsAnalyzer.sln /rebuild debug
*
* Requirement Files:
* ==================
* CmdLineArgs.h
* CmdLineArgs.cpp
*
* Maintenance History:
* ====================
* ver 1.0 : 15 Feb 2011
* - Initial Release
*/
#include "CmdLineArgs.h"
#include "Executive.h"
#include "Show.h"
int main(int argc,char* argv[])
{
try
{
CmdLineArgs cla;
Show::printHeader();
if(cla.ValidateAndStoreArgs(argc,argv))
{
std::vector<std::string> ptrFiles = cla.getFiles();
Executive ex(ptrFiles);
ex.AnalyzeFiles();
Show::printOverAllSummary();
}
else
{
cla.printManual();
}
}
catch ( std::exception ex)
{ std::cout<<"Application ended in error : "<<ex.what(); }
}