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 |
|
1 |
ProcessClass::ProcessClass(){ |
21 |
|
1 |
initialisationProcessClass(); |
22 |
|
1 |
} |
23 |
|
|
|
24 |
|
|
///Copy Constructor of class ProcessClass |
25 |
|
|
/** @param other : ProcessClass we want ot copy |
26 |
|
|
*/ |
27 |
|
✗ |
ProcessClass::ProcessClass(const ProcessClass & other){ |
28 |
|
✗ |
copyProcessClass(other); |
29 |
|
|
} |
30 |
|
|
|
31 |
|
|
///Destructor of class ProcessClass |
32 |
|
2 |
ProcessClass::~ProcessClass(){ |
33 |
|
|
|
34 |
|
|
} |
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 |
bool 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 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 |
bool 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 true; |
61 |
|
|
} |
62 |
|
|
|
63 |
|
|
///Copy Function of class ProcessClass |
64 |
|
|
/** @param other : ProcessClass we want ot copy |
65 |
|
|
*/ |
66 |
|
✗ |
void ProcessClass::copyProcessClass(const ProcessClass & other){ |
67 |
|
✗ |
p_testedLong = other.p_testedLong; |
68 |
|
|
} |
69 |
|
|
|
70 |
|
|
///Initialisation Function of class ProcessClass |
71 |
|
1 |
void ProcessClass::initialisationProcessClass(){ |
72 |
|
1 |
p_testedLong = 0; |
73 |
|
1 |
} |
74 |
|
|
|
75 |
|
|
|