-
Notifications
You must be signed in to change notification settings - Fork 3
/
HPCRunningStats.cpp
39 lines (31 loc) · 940 Bytes
/
HPCRunningStats.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
#include "HPCRunningStats.h"
Halstead* actualHal;
/*CommandLine arguments */
bool* notree;
bool* relationtree;
bool* onlypattern;
bool* usespecfiles;
bool* maxtreedisplaydepth;
bool* displaycompilatonslist;
bool* printversion;
void setActualHalstead(Halstead* actualHalstead){
actualHal = actualHalstead;
}
Halstead* getActualHalstead(){
return actualHal;
}
void setRelationTree(bool value){
relationtree = &value;
}
void setNoTree(bool value){
notree = &value;
}
void setCommandArguments(bool onlyPattern, bool noTree, bool useSpecFiles, bool maxTreeDisplayDepth, bool displayCompilationsList, bool printVersion, bool relationTree){
notree = &noTree;
usespecfiles = &useSpecFiles;
onlypattern = &onlyPattern;
maxtreedisplaydepth = &maxTreeDisplayDepth;
displaycompilatonslist = &displayCompilationsList;
printversion = &printVersion;
relationtree = &relationTree;
}