-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
35 lines (27 loc) · 802 Bytes
/
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
#include <iostream>
#include <fstream>
#include "Project.h"
#include "WindowsOS.h"
#include "HTMLService.h"
#include <clocale>
#include <windows.h>
using namespace std;
int main(int argc, char* argv[])
{
//setlocale(LC_ALL, "Russian");
Project project;
project.ReadAppParams(argc, argv);
if((project.GetInputDir() == std::string("")) || (project.GetOutputDir() == std::string("")))
{
std::cerr << "usage: GccCppCodeCovering.exe -i[nputDir] <dir with *.gcov files> -o[utputDir] <dir for html report>" << std::endl;
std::cerr << "If outputDir does't exist, the will be created." << std::endl;
return 1;
}
project.Proccess();
if(project.GetModulesCount() == 0)
{
return 1;
}
project.GenerateHTMLReport();
return 1;
}