GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: tmp_project/FileParser/src/PNestedCall.cpp Lines: 49 53 92.5 %
Date: 2024-09-10 03:06:26 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
249
PNestedStr::PNestedStr(){
12
13
249
}
14
15
///Copy Constructor of class PNestedStr
16
/**	@param other : PNestedStr we want ot copy
17
*/
18
1064
PNestedStr::PNestedStr(const PNestedStr & other){
19
1064
	copyPNestedStr(other);
20
1064
}
21
22
///Destructor of class PNestedStr
23
2626
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
24
PNestedStr & PNestedStr::operator = (const PNestedStr & other){
32
24
	copyPNestedStr(other);
33
24
	return *this;
34
}
35
36
///Sets the value of the PNestedStr
37
/**	@param value : value of the PNestedStr
38
*/
39
249
void PNestedStr::setValue(const std::string & value){
40
249
	p_value = value;
41
249
}
42
43
///Sets the isVarCall of the PNestedStr
44
/**	@param isVarCall : isVarCall of the PNestedStr
45
*/
46
249
void PNestedStr::setIsVarCall(bool isVarCall){
47
249
	p_isVarCall = isVarCall;
48
249
}
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
223
std::string & PNestedStr::getValue(){
61
223
	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
223
bool & PNestedStr::getIsVarCall(){
75
223
	return p_isVarCall;
76
}
77
78
///Copy Function of class PNestedStr
79
/**	@param other : PNestedStr we want ot copy
80
*/
81
1088
void PNestedStr::copyPNestedStr(const PNestedStr & other){
82
1088
	p_value = other.p_value;
83
1088
	p_isVarCall = other.p_isVarCall;
84
1088
}
85
86
///Constructor of class PNestedCall
87
178
PNestedCall::PNestedCall(){
88
89
178
}
90
91
///Copy Constructor of class PNestedCall
92
/**	@param other : PNestedCall we want ot copy
93
*/
94
174
PNestedCall::PNestedCall(const PNestedCall & other){
95
174
	copyPNestedCall(other);
96
174
}
97
98
///Destructor of class PNestedCall
99
704
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
43
PNestedCall & PNestedCall::operator = (const PNestedCall & other){
108
43
	copyPNestedCall(other);
109
43
	return *this;
110
}
111
112
///Sets the name of the PNestedCall
113
/**	@param name : name of the PNestedCall
114
*/
115
141
void PNestedCall::setName(const std::string & name){
116
141
	p_name = name;
117
141
}
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
65
std::string & PNestedCall::getName(){
137
65
	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
314
std::vector<PNestedStr> & PNestedCall::getVecNestedStr(){
151
314
	return p_vecNestedStr;
152
}
153
154
///Copy Function of class PNestedCall
155
/**	@param other : PNestedCall we want ot copy
156
*/
157
217
void PNestedCall::copyPNestedCall(const PNestedCall & other){
158
217
	p_name = other.p_name;
159
217
	p_vecNestedStr = other.p_vecNestedStr;
160
217
}
161