GCC Code Coverage Report


Directory: ./
File: src/Representation/PDataConfig.cpp
Date: 2026-01-30 16:30:53
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 8 PDataConfig::PDataConfig(){
12
1/1
✓ Branch 0 (5→6) taken 8 times.
8 initialisationPDataConfig();
13 8 }
14
15 ///Copy constructor of PDataConfig
16 /** @param other : class to copy
17 */
18 14 PDataConfig::PDataConfig(const PDataConfig & other){
19
1/1
✓ Branch 0 (5→6) taken 14 times.
14 copyPDataConfig(other);
20 14 }
21
22 ///Destructeur of PDataConfig
23 22 PDataConfig::~PDataConfig(){
24
25 22 }
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 21 const PPath & PDataConfig::getFileName() const{
47 21 return p_fileName;
48 }
49
50 ///Get the file name of the current PDataConfig
51 /** @return file name of the current PDataConfig
52 */
53 6 PPath & PDataConfig::getFileName(){
54 6 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 29 const PVecClassConfig & PDataConfig::getVecClassConfig() const{
61 29 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 10 PVecClassConfig & PDataConfig::getVecClassConfig(){
68 10 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 10 const PVecPath & PDataConfig::getVecInclude() const{
75 10 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 6 PVecPath & PDataConfig::getVecInclude(){
82 6 return p_vecInclude;
83 }
84
85
86 ///Copy function of PDataConfig
87 /** @param other : class to copy
88 */
89 14 void PDataConfig::copyPDataConfig(const PDataConfig & other){
90 14 p_fileName = other.p_fileName;
91 14 p_vecClassConfig = other.p_vecClassConfig;
92 14 p_vecInclude = other.p_vecInclude;
93 14 }
94
95 ///Initialisation function of the class PDataConfig
96 8 void PDataConfig::initialisationPDataConfig(){
97
98 8 }
99
100
101
102
103
104