| 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 "PPackageAttribute.h" | ||
| 9 | |||
| 10 | ///Constructor of class PPackageAttribute | ||
| 11 |
6/6✓ Branch 0 (3→4) taken 12 times.
✓ Branch 2 (4→5) taken 12 times.
✓ Branch 4 (5→6) taken 12 times.
✓ Branch 6 (6→7) taken 12 times.
✓ Branch 8 (7→8) taken 12 times.
✓ Branch 10 (8→9) taken 12 times.
|
12 | PPackageAttribute::PPackageAttribute(){ |
| 12 |
1/1✓ Branch 0 (9→10) taken 12 times.
|
12 | initialisationPPackageAttribute(); |
| 13 | 12 | } | |
| 14 | |||
| 15 | ///Copy Constructor of class PPackageAttribute | ||
| 16 | /** @param other : PPackageAttribute we want ot copy | ||
| 17 | */ | ||
| 18 |
6/6✓ Branch 0 (3→4) taken 1 times.
✓ Branch 2 (4→5) taken 1 times.
✓ Branch 4 (5→6) taken 1 times.
✓ Branch 6 (6→7) taken 1 times.
✓ Branch 8 (7→8) taken 1 times.
✓ Branch 10 (8→9) taken 1 times.
|
1 | PPackageAttribute::PPackageAttribute(const PPackageAttribute & other){ |
| 19 |
1/1✓ Branch 0 (9→10) taken 1 times.
|
1 | copyPPackageAttribute(other); |
| 20 | 1 | } | |
| 21 | |||
| 22 | ///Destructor of class PPackageAttribute | ||
| 23 | 13 | PPackageAttribute::~PPackageAttribute(){ | |
| 24 | |||
| 25 | 13 | } | |
| 26 | |||
| 27 | ///Operator = of class PPackageAttribute | ||
| 28 | /** @param other : PPackageAttribute we want ot copy | ||
| 29 | * @return copied class PPackageAttribute | ||
| 30 | */ | ||
| 31 | 1 | PPackageAttribute & PPackageAttribute::operator = (const PPackageAttribute & other){ | |
| 32 | 1 | copyPPackageAttribute(other); | |
| 33 | 1 | return *this; | |
| 34 | } | ||
| 35 | |||
| 36 | ///Sets the name of the PPackageAttribute | ||
| 37 | /** @param name : name of the PPackageAttribute | ||
| 38 | */ | ||
| 39 | 11 | void PPackageAttribute::setName(const PString & name){ | |
| 40 | 11 | p_name = name; | |
| 41 | 11 | } | |
| 42 | |||
| 43 | ///Sets the pixiName of the PPackageAttribute | ||
| 44 | /** @param pixiName : pixiName of the PPackageAttribute | ||
| 45 | */ | ||
| 46 | 10 | void PPackageAttribute::setPixiName(const PString & pixiName){ | |
| 47 | 10 | p_pixiName = pixiName; | |
| 48 | 10 | } | |
| 49 | |||
| 50 | ///Sets the cmakeFind of the PPackageAttribute | ||
| 51 | /** @param cmakeFind : cmakeFind of the PPackageAttribute | ||
| 52 | */ | ||
| 53 | 10 | void PPackageAttribute::setCmakeFind(const PString & cmakeFind){ | |
| 54 | 10 | p_cmakeFind = cmakeFind; | |
| 55 | 10 | } | |
| 56 | |||
| 57 | ///Sets the cmakeLib of the PPackageAttribute | ||
| 58 | /** @param cmakeLib : cmakeLib of the PPackageAttribute | ||
| 59 | */ | ||
| 60 | 10 | void PPackageAttribute::setCmakeLib(const PString & cmakeLib){ | |
| 61 | 10 | p_cmakeLib = cmakeLib; | |
| 62 | 10 | } | |
| 63 | |||
| 64 | ///Sets the url of the PPackageAttribute | ||
| 65 | /** @param url : url of the PPackageAttribute | ||
| 66 | */ | ||
| 67 | 10 | void PPackageAttribute::setUrl(const PString & url){ | |
| 68 | 10 | p_url = url; | |
| 69 | 10 | } | |
| 70 | |||
| 71 | ///Sets the minVersion of the PPackageAttribute | ||
| 72 | /** @param minVersion : minVersion of the PPackageAttribute | ||
| 73 | */ | ||
| 74 | 11 | void PPackageAttribute::setMinVersion(const PString & minVersion){ | |
| 75 | 11 | p_minVersion = minVersion; | |
| 76 | 11 | } | |
| 77 | |||
| 78 | ///Sets the maxVersion of the PPackageAttribute | ||
| 79 | /** @param maxVersion : maxVersion of the PPackageAttribute | ||
| 80 | */ | ||
| 81 | 11 | void PPackageAttribute::setMaxVersion(const PString & maxVersion){ | |
| 82 | 11 | p_maxVersion = maxVersion; | |
| 83 | 11 | } | |
| 84 | |||
| 85 | ///Gets the name of the PPackageAttribute | ||
| 86 | /** @return name of the PPackageAttribute | ||
| 87 | */ | ||
| 88 | 82 | const PString & PPackageAttribute::getName() const{ | |
| 89 | 82 | return p_name; | |
| 90 | } | ||
| 91 | |||
| 92 | ///Gets the name of the PPackageAttribute | ||
| 93 | /** @return name of the PPackageAttribute | ||
| 94 | */ | ||
| 95 | 4 | PString & PPackageAttribute::getName(){ | |
| 96 | 4 | return p_name; | |
| 97 | } | ||
| 98 | |||
| 99 | ///Gets the pixiName of the PPackageAttribute | ||
| 100 | /** @return pixiName of the PPackageAttribute | ||
| 101 | */ | ||
| 102 | 13 | const PString & PPackageAttribute::getPixiName() const{ | |
| 103 | 13 | return p_pixiName; | |
| 104 | } | ||
| 105 | |||
| 106 | ///Gets the pixiName of the PPackageAttribute | ||
| 107 | /** @return pixiName of the PPackageAttribute | ||
| 108 | */ | ||
| 109 | 5 | PString & PPackageAttribute::getPixiName(){ | |
| 110 | 5 | return p_pixiName; | |
| 111 | } | ||
| 112 | |||
| 113 | ///Gets the cmakeFind of the PPackageAttribute | ||
| 114 | /** @return cmakeFind of the PPackageAttribute | ||
| 115 | */ | ||
| 116 | 6 | const PString & PPackageAttribute::getCmakeFind() const{ | |
| 117 | 6 | return p_cmakeFind; | |
| 118 | } | ||
| 119 | |||
| 120 | ///Gets the cmakeFind of the PPackageAttribute | ||
| 121 | /** @return cmakeFind of the PPackageAttribute | ||
| 122 | */ | ||
| 123 | 4 | PString & PPackageAttribute::getCmakeFind(){ | |
| 124 | 4 | return p_cmakeFind; | |
| 125 | } | ||
| 126 | |||
| 127 | ///Gets the cmakeLib of the PPackageAttribute | ||
| 128 | /** @return cmakeLib of the PPackageAttribute | ||
| 129 | */ | ||
| 130 | 13 | const PString & PPackageAttribute::getCmakeLib() const{ | |
| 131 | 13 | return p_cmakeLib; | |
| 132 | } | ||
| 133 | |||
| 134 | ///Gets the cmakeLib of the PPackageAttribute | ||
| 135 | /** @return cmakeLib of the PPackageAttribute | ||
| 136 | */ | ||
| 137 | 4 | PString & PPackageAttribute::getCmakeLib(){ | |
| 138 | 4 | return p_cmakeLib; | |
| 139 | } | ||
| 140 | |||
| 141 | ///Gets the url of the PPackageAttribute | ||
| 142 | /** @return url of the PPackageAttribute | ||
| 143 | */ | ||
| 144 | 20 | const PString & PPackageAttribute::getUrl() const{ | |
| 145 | 20 | return p_url; | |
| 146 | } | ||
| 147 | |||
| 148 | ///Gets the url of the PPackageAttribute | ||
| 149 | /** @return url of the PPackageAttribute | ||
| 150 | */ | ||
| 151 | 13 | PString & PPackageAttribute::getUrl(){ | |
| 152 | 13 | return p_url; | |
| 153 | } | ||
| 154 | |||
| 155 | ///Gets the minVersion of the PPackageAttribute | ||
| 156 | /** @return minVersion of the PPackageAttribute | ||
| 157 | */ | ||
| 158 | 13 | const PString & PPackageAttribute::getMinVersion() const{ | |
| 159 | 13 | return p_minVersion; | |
| 160 | } | ||
| 161 | |||
| 162 | ///Gets the minVersion of the PPackageAttribute | ||
| 163 | /** @return minVersion of the PPackageAttribute | ||
| 164 | */ | ||
| 165 | 5 | PString & PPackageAttribute::getMinVersion(){ | |
| 166 | 5 | return p_minVersion; | |
| 167 | } | ||
| 168 | |||
| 169 | ///Gets the maxVersion of the PPackageAttribute | ||
| 170 | /** @return maxVersion of the PPackageAttribute | ||
| 171 | */ | ||
| 172 | 13 | const PString & PPackageAttribute::getMaxVersion() const{ | |
| 173 | 13 | return p_maxVersion; | |
| 174 | } | ||
| 175 | |||
| 176 | ///Gets the maxVersion of the PPackageAttribute | ||
| 177 | /** @return maxVersion of the PPackageAttribute | ||
| 178 | */ | ||
| 179 | 5 | PString & PPackageAttribute::getMaxVersion(){ | |
| 180 | 5 | return p_maxVersion; | |
| 181 | } | ||
| 182 | |||
| 183 | ///Copy Function of class PPackageAttribute | ||
| 184 | /** @param other : PPackageAttribute we want ot copy | ||
| 185 | */ | ||
| 186 | 2 | void PPackageAttribute::copyPPackageAttribute(const PPackageAttribute & other){ | |
| 187 | 2 | p_name = other.p_name; | |
| 188 | 2 | p_pixiName = other.p_pixiName; | |
| 189 | 2 | p_cmakeFind = other.p_cmakeFind; | |
| 190 | 2 | p_cmakeLib = other.p_cmakeLib; | |
| 191 | 2 | p_url = other.p_url; | |
| 192 | 2 | p_minVersion = other.p_minVersion; | |
| 193 | 2 | p_maxVersion = other.p_maxVersion; | |
| 194 | 2 | } | |
| 195 | |||
| 196 | ///Initialisation Function of class PPackageAttribute | ||
| 197 | 12 | void PPackageAttribute::initialisationPPackageAttribute(){ | |
| 198 | 12 | p_name = ""; | |
| 199 | 12 | p_pixiName = ""; | |
| 200 | 12 | p_cmakeFind = ""; | |
| 201 | 12 | p_cmakeLib = ""; | |
| 202 | 12 | p_url = ""; | |
| 203 | 12 | p_minVersion = ""; | |
| 204 | 12 | p_maxVersion = ""; | |
| 205 | 12 | } | |
| 206 | |||
| 207 |