| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | |||
| 2 | /*************************************** | ||
| 3 | Auteur : Thibaut Oprinsen & Pierre Aubert | ||
| 4 | Mail : pierre.aubert@lapp.in2p3.fr | ||
| 5 | Licence : CeCILL-C | ||
| 6 | ****************************************/ | ||
| 7 | |||
| 8 | |||
| 9 | #include "ProcessClass.h" | ||
| 10 | |||
| 11 | ///Get the name of the class ProcessClass | ||
| 12 | /** @return name of the class ProcessClass | ||
| 13 | */ | ||
| 14 | template<> | ||
| 15 | ✗ | std::string phoenix_getTypeName<ProcessClass>(){ | |
| 16 | ✗ | return "ProcessClass"; | |
| 17 | } | ||
| 18 | |||
| 19 | ///Constructor of class ProcessClass | ||
| 20 | 2 | ProcessClass::ProcessClass(){ | |
| 21 | 2 | initialisationProcessClass(); | |
| 22 | 2 | } | |
| 23 | |||
| 24 | ///Copy Constructor of class ProcessClass | ||
| 25 | /** @param other : ProcessClass we want ot copy | ||
| 26 | */ | ||
| 27 | 2 | ProcessClass::ProcessClass(const ProcessClass & other){ | |
| 28 | 2 | copyProcessClass(other); | |
| 29 | 2 | } | |
| 30 | |||
| 31 | ///Destructor of class ProcessClass | ||
| 32 | 4 | ProcessClass::~ProcessClass(){ | |
| 33 | |||
| 34 | 4 | } | |
| 35 | |||
| 36 | ///Operator = of class ProcessClass | ||
| 37 | /** @param other : ProcessClass we want ot copy | ||
| 38 | * @return copied class ProcessClass | ||
| 39 | */ | ||
| 40 | ✗ | ProcessClass & ProcessClass::operator = (const ProcessClass & other){ | |
| 41 | ✗ | copyProcessClass(other); | |
| 42 | ✗ | return *this; | |
| 43 | } | ||
| 44 | |||
| 45 | ///Fill the ProcessClass with an integer | ||
| 46 | /** @param int : process p_testedLong of the ProcessClass | ||
| 47 | * @return true on success, false otherwise | ||
| 48 | */ | ||
| 49 | 1 | PUncastableBool ProcessClass::fillLong(const long &testLong){ | |
| 50 | 1 | std::cout << "test fillLong : we are processing a long from a non static method" << std::endl; | |
| 51 | 1 | return UNCASTABLE_TRUE; | |
| 52 | } | ||
| 53 | |||
| 54 | ///Fill the ProcessClass with a short | ||
| 55 | /** @param short : process p_testedShort of the ProcessClass | ||
| 56 | * @return true on success, false otherwise | ||
| 57 | */ | ||
| 58 | 1 | PUncastableBool ProcessClass::fillShort(const short &testShort){ | |
| 59 | 1 | std::cout << "test fillShort : we are processing a short from a non static method" << std::endl; | |
| 60 | 1 | return UNCASTABLE_TRUE; | |
| 61 | } | ||
| 62 | |||
| 63 | ///Copy Function of class ProcessClass | ||
| 64 | /** @param other : ProcessClass we want ot copy | ||
| 65 | */ | ||
| 66 | 2 | void ProcessClass::copyProcessClass(const ProcessClass & other){ | |
| 67 | 2 | p_testedLong = other.p_testedLong; | |
| 68 | 2 | } | |
| 69 | |||
| 70 | ///Initialisation Function of class ProcessClass | ||
| 71 | 2 | void ProcessClass::initialisationProcessClass(){ | |
| 72 | 2 | p_testedLong = 0; | |
| 73 | 2 | } | |
| 74 | |||
| 75 |