| 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 "PProjectMembers.h" | ||
| 9 | |||
| 10 | ///Constructor of class PProjectMembers | ||
| 11 |
3/3✓ Branch 0 (3→4) taken 26 times.
✓ Branch 2 (4→5) taken 26 times.
✓ Branch 4 (5→6) taken 26 times.
|
26 | PProjectMembers::PProjectMembers(){ |
| 12 |
1/1✓ Branch 0 (6→7) taken 26 times.
|
26 | initialisationPProjectMembers(); |
| 13 | 26 | } | |
| 14 | |||
| 15 | ///Copy Constructor of class PProjectMembers | ||
| 16 | /** @param other : PProjectMembers we want ot copy | ||
| 17 | */ | ||
| 18 |
3/3✓ Branch 0 (3→4) taken 1 times.
✓ Branch 2 (4→5) taken 1 times.
✓ Branch 4 (5→6) taken 1 times.
|
1 | PProjectMembers::PProjectMembers(const PProjectMembers & other){ |
| 19 |
1/1✓ Branch 0 (6→7) taken 1 times.
|
1 | copyPProjectMembers(other); |
| 20 | 1 | } | |
| 21 | |||
| 22 | ///Destructor of class PProjectMembers | ||
| 23 | 27 | PProjectMembers::~PProjectMembers(){ | |
| 24 | |||
| 25 | 27 | } | |
| 26 | |||
| 27 | ///Operator = of class PProjectMembers | ||
| 28 | /** @param other : PProjectMembers we want ot copy | ||
| 29 | * @return copied class PProjectMembers | ||
| 30 | */ | ||
| 31 | 13 | PProjectMembers & PProjectMembers::operator = (const PProjectMembers & other){ | |
| 32 | 13 | copyPProjectMembers(other); | |
| 33 | 13 | return *this; | |
| 34 | } | ||
| 35 | |||
| 36 | ///Sets the firstName of the PProjectMembers | ||
| 37 | /** @param firstName : firstName of the PProjectMembers | ||
| 38 | */ | ||
| 39 | 13 | void PProjectMembers::setFirstName(const PString & firstName){ | |
| 40 | 13 | p_firstName = firstName; | |
| 41 | 13 | } | |
| 42 | |||
| 43 | ///Sets the lastName of the PProjectMembers | ||
| 44 | /** @param lastName : lastName of the PProjectMembers | ||
| 45 | */ | ||
| 46 | 13 | void PProjectMembers::setLastName(const PString & lastName){ | |
| 47 | 13 | p_lastName = lastName; | |
| 48 | 13 | } | |
| 49 | |||
| 50 | ///Sets the affiliation of the PProjectMembers | ||
| 51 | /** @param affiliation : affiliation of the PProjectMembers | ||
| 52 | */ | ||
| 53 | 13 | void PProjectMembers::setAffiliation(const PString & affiliation){ | |
| 54 | 13 | p_affiliation = affiliation; | |
| 55 | 13 | } | |
| 56 | |||
| 57 | ///Sets the email of the PProjectMembers | ||
| 58 | /** @param email : email of the PProjectMembers | ||
| 59 | */ | ||
| 60 | 13 | void PProjectMembers::setEmail(const PString & email){ | |
| 61 | 13 | p_email = email; | |
| 62 | 13 | } | |
| 63 | |||
| 64 | ///Gets the firstName of the PProjectMembers | ||
| 65 | /** @return firstName of the PProjectMembers | ||
| 66 | */ | ||
| 67 | 16 | const PString & PProjectMembers::getFirstName() const{ | |
| 68 | 16 | return p_firstName; | |
| 69 | } | ||
| 70 | |||
| 71 | ///Gets the firstName of the PProjectMembers | ||
| 72 | /** @return firstName of the PProjectMembers | ||
| 73 | */ | ||
| 74 | 16 | PString & PProjectMembers::getFirstName(){ | |
| 75 | 16 | return p_firstName; | |
| 76 | } | ||
| 77 | |||
| 78 | ///Gets the lastName of the PProjectMembers | ||
| 79 | /** @return lastName of the PProjectMembers | ||
| 80 | */ | ||
| 81 | 16 | const PString & PProjectMembers::getLastName() const{ | |
| 82 | 16 | return p_lastName; | |
| 83 | } | ||
| 84 | |||
| 85 | ///Gets the lastName of the PProjectMembers | ||
| 86 | /** @return lastName of the PProjectMembers | ||
| 87 | */ | ||
| 88 | 16 | PString & PProjectMembers::getLastName(){ | |
| 89 | 16 | return p_lastName; | |
| 90 | } | ||
| 91 | |||
| 92 | ///Gets the affiliation of the PProjectMembers | ||
| 93 | /** @return affiliation of the PProjectMembers | ||
| 94 | */ | ||
| 95 | 12 | const PString & PProjectMembers::getAffiliation() const{ | |
| 96 | 12 | return p_affiliation; | |
| 97 | } | ||
| 98 | |||
| 99 | ///Gets the affiliation of the PProjectMembers | ||
| 100 | /** @return affiliation of the PProjectMembers | ||
| 101 | */ | ||
| 102 | 4 | PString & PProjectMembers::getAffiliation(){ | |
| 103 | 4 | return p_affiliation; | |
| 104 | } | ||
| 105 | |||
| 106 | ///Gets the email of the PProjectMembers | ||
| 107 | /** @return email of the PProjectMembers | ||
| 108 | */ | ||
| 109 | 16 | const PString & PProjectMembers::getEmail() const{ | |
| 110 | 16 | return p_email; | |
| 111 | } | ||
| 112 | |||
| 113 | ///Gets the email of the PProjectMembers | ||
| 114 | /** @return email of the PProjectMembers | ||
| 115 | */ | ||
| 116 | 4 | PString & PProjectMembers::getEmail(){ | |
| 117 | 4 | return p_email; | |
| 118 | } | ||
| 119 | |||
| 120 | ///Copy Function of class PProjectMembers | ||
| 121 | /** @param other : PProjectMembers we want ot copy | ||
| 122 | */ | ||
| 123 | 14 | void PProjectMembers::copyPProjectMembers(const PProjectMembers & other){ | |
| 124 | 14 | p_firstName = other.p_firstName; | |
| 125 | 14 | p_lastName = other.p_lastName; | |
| 126 | 14 | p_affiliation = other.p_affiliation; | |
| 127 | 14 | p_email = other.p_email; | |
| 128 | 14 | } | |
| 129 | |||
| 130 | ///Initialisation Function of class PProjectMembers | ||
| 131 | 26 | void PProjectMembers::initialisationPProjectMembers(){ | |
| 132 | 26 | p_firstName = ""; | |
| 133 | 26 | p_lastName = ""; | |
| 134 | 26 | p_affiliation = ""; | |
| 135 | 26 | p_email = ""; | |
| 136 | 26 | } | |
| 137 | |||
| 138 |