GCC Code Coverage Report


Directory: ./
File: src/Representation/PDataConfig.cpp
Date: 2025-12-15 11:32:44
Exec Total Coverage
Lines: 30 33 90.9%
Functions: 12 14 85.7%
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 "PDataConfig.h"
9
10 ///Default constructeur of PDataConfig
11 6 PDataConfig::PDataConfig(){
12
1/1
✓ Branch 0 (5→6) taken 6 times.
6 initialisationPDataConfig();
13 6 }
14
15 ///Copy constructor of PDataConfig
16 /** @param other : class to copy
17 */
18 11 PDataConfig::PDataConfig(const PDataConfig & other){
19
1/1
✓ Branch 0 (5→6) taken 11 times.
11 copyPDataConfig(other);
20 11 }
21
22 ///Destructeur of PDataConfig
23 17 PDataConfig::~PDataConfig(){
24
25 17 }
26
27 ///Definition of equal operator of PDataConfig
28 /** @param other : class to copy
29 * @return copied class
30 */
31 PDataConfig & PDataConfig::operator = (const PDataConfig & other){
32 copyPDataConfig(other);
33 return *this;
34 }
35
36 ///Set the file name of the current PDataConfig
37 /** @param fileName : file name of the current PDataConfig
38 */
39 2 void PDataConfig::setFileName(const PPath & fileName){
40 2 p_fileName = fileName;
41 2 }
42
43 ///Get the file name of the current PDataConfig
44 /** @return file name of the current PDataConfig
45 */
46 15 const PPath & PDataConfig::getFileName() const{
47 15 return p_fileName;
48 }
49
50 ///Get the file name of the current PDataConfig
51 /** @return file name of the current PDataConfig
52 */
53 4 PPath & PDataConfig::getFileName(){
54 4 return p_fileName;
55 }
56
57 ///Get the vector of all config class of the current pdata file
58 /** @return vector of all config class of the current pdata file
59 */
60 21 const PVecClassConfig & PDataConfig::getVecClassConfig() const{
61 21 return p_vecClassConfig;
62 }
63
64 ///Get the vector of all config class of the current pdata file
65 /** @return vector of all config class of the current pdata file
66 */
67 8 PVecClassConfig & PDataConfig::getVecClassConfig(){
68 8 return p_vecClassConfig;
69 }
70
71 ///Get the vector of all include files of the current pdata file
72 /** @return vector of all include files of the current pdata file
73 */
74 6 const PVecPath & PDataConfig::getVecInclude() const{
75 6 return p_vecInclude;
76 }
77
78 ///Get the vector of all include files of the current pdata file
79 /** @return vector of all include files of the current pdata file
80 */
81 4 PVecPath & PDataConfig::getVecInclude(){
82 4 return p_vecInclude;
83 }
84
85
86 ///Copy function of PDataConfig
87 /** @param other : class to copy
88 */
89 11 void PDataConfig::copyPDataConfig(const PDataConfig & other){
90 11 p_fileName = other.p_fileName;
91 11 p_vecClassConfig = other.p_vecClassConfig;
92 11 p_vecInclude = other.p_vecInclude;
93 11 }
94
95 ///Initialisation function of the class PDataConfig
96 6 void PDataConfig::initialisationPDataConfig(){
97
98 6 }
99
100
101
102
103
104