GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: tmp_project/FileParser/src/PNestedCall.cpp Lines: 49 53 92.5 %
Date: 2023-10-11 10:52:07 Branches: 2 2 100.0 %

Line Branch Exec Source
1
/***************************************
2
	Auteur : Pierre Aubert
3
	Mail : pierre.aubert@lapp.in2p3.fr
4
	Licence : CeCILL-C
5
****************************************/
6
7
8
#include "PNestedCall.h"
9
10
///Constructor of class PNestedStr
11
148
PNestedStr::PNestedStr(){
12
13
148
}
14
15
///Copy Constructor of class PNestedStr
16
/**	@param other : PNestedStr we want ot copy
17
*/
18
642
PNestedStr::PNestedStr(const PNestedStr & other){
19
642
	copyPNestedStr(other);
20
642
}
21
22
///Destructor of class PNestedStr
23
1580
PNestedStr::~PNestedStr(){
24
25
}
26
27
///Operator = of class PNestedStr
28
/**	@param other : PNestedStr we want ot copy
29
 * 	@return copied class PNestedStr
30
*/
31
12
PNestedStr & PNestedStr::operator = (const PNestedStr & other){
32
12
	copyPNestedStr(other);
33
12
	return *this;
34
}
35
36
///Sets the value of the PNestedStr
37
/**	@param value : value of the PNestedStr
38
*/
39
148
void PNestedStr::setValue(const std::string & value){
40
148
	p_value = value;
41
148
}
42
43
///Sets the isVarCall of the PNestedStr
44
/**	@param isVarCall : isVarCall of the PNestedStr
45
*/
46
148
void PNestedStr::setIsVarCall(bool isVarCall){
47
148
	p_isVarCall = isVarCall;
48
148
}
49
50
///Gets the value of the PNestedStr
51
/**	@return value of the PNestedStr
52
*/
53
9
const std::string & PNestedStr::getValue() const{
54
9
	return p_value;
55
}
56
57
///Gets the value of the PNestedStr
58
/**	@return value of the PNestedStr
59
*/
60
144
std::string & PNestedStr::getValue(){
61
144
	return p_value;
62
}
63
64
///Gets the isVarCall of the PNestedStr
65
/**	@return isVarCall of the PNestedStr
66
*/
67
8
bool PNestedStr::getIsVarCall() const{
68
8
	return p_isVarCall;
69
}
70
71
///Gets the isVarCall of the PNestedStr
72
/**	@return isVarCall of the PNestedStr
73
*/
74
144
bool & PNestedStr::getIsVarCall(){
75
144
	return p_isVarCall;
76
}
77
78
///Copy Function of class PNestedStr
79
/**	@param other : PNestedStr we want ot copy
80
*/
81
654
void PNestedStr::copyPNestedStr(const PNestedStr & other){
82
654
	p_value = other.p_value;
83
654
	p_isVarCall = other.p_isVarCall;
84
654
}
85
86
///Constructor of class PNestedCall
87
108
PNestedCall::PNestedCall(){
88
89
108
}
90
91
///Copy Constructor of class PNestedCall
92
/**	@param other : PNestedCall we want ot copy
93
*/
94
117
PNestedCall::PNestedCall(const PNestedCall & other){
95
117
	copyPNestedCall(other);
96
117
}
97
98
///Destructor of class PNestedCall
99
450
PNestedCall::~PNestedCall(){
100
101
}
102
103
///Operator = of class PNestedCall
104
/**	@param other : PNestedCall we want ot copy
105
 * 	@return copied class PNestedCall
106
*/
107
29
PNestedCall & PNestedCall::operator = (const PNestedCall & other){
108
29
	copyPNestedCall(other);
109
29
	return *this;
110
}
111
112
///Sets the name of the PNestedCall
113
/**	@param name : name of the PNestedCall
114
*/
115
80
void PNestedCall::setName(const std::string & name){
116
80
	p_name = name;
117
80
}
118
119
///Sets the vecNestedStr of the PNestedCall
120
/**	@param vecNestedStr : vecNestedStr of the PNestedCall
121
*/
122
void PNestedCall::setVecNestedStr(const std::vector<PNestedStr> & vecNestedStr){
123
	p_vecNestedStr = vecNestedStr;
124
}
125
126
///Gets the name of the PNestedCall
127
/**	@return name of the PNestedCall
128
*/
129
const std::string & PNestedCall::getName() const{
130
	return p_name;
131
}
132
133
///Gets the name of the PNestedCall
134
/**	@return name of the PNestedCall
135
*/
136
45
std::string & PNestedCall::getName(){
137
45
	return p_name;
138
}
139
140
///Gets the vecNestedStr of the PNestedCall
141
/**	@return vecNestedStr of the PNestedCall
142
*/
143
4
const std::vector<PNestedStr> & PNestedCall::getVecNestedStr() const{
144
4
	return p_vecNestedStr;
145
}
146
147
///Gets the vecNestedStr of the PNestedCall
148
/**	@return vecNestedStr of the PNestedCall
149
*/
150
193
std::vector<PNestedStr> & PNestedCall::getVecNestedStr(){
151
193
	return p_vecNestedStr;
152
}
153
154
///Copy Function of class PNestedCall
155
/**	@param other : PNestedCall we want ot copy
156
*/
157
146
void PNestedCall::copyPNestedCall(const PNestedCall & other){
158
146
	p_name = other.p_name;
159
146
	p_vecNestedStr = other.p_vecNestedStr;
160
146
}
161