GCC Code Coverage Report


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