PhoenixSwarm
6.1.0
Persistent processing programs exchanging data over sockets
Toggle main menu visibility
Loading...
Searching...
No Matches
Shadok.cpp
Go to the documentation of this file.
1
/***************************************
2
Auteur : Pierre Aubert
3
Mail : pierre.aubert@lapp.in2p3.fr
4
Licence : LGPL-3.0-only
5
****************************************/
6
7
8
#include "
Shadok.h
"
9
11
13
template
<>
14
std::string
phoenix_getTypeName<Shadok >
(){
15
return
"Shadok"
;
16
}
17
19
Shadok::Shadok
(){
20
initialisationShadok
();
21
}
22
24
26
Shadok::Shadok
(
const
Shadok
& other){
27
copyShadok
(other);
28
}
29
31
Shadok::~Shadok
(){
32
33
}
34
36
39
Shadok
&
Shadok::operator =
(
const
Shadok
& other){
40
copyShadok
(other);
41
return
*
this
;
42
}
43
45
47
void
Shadok::setAge
(
int
age){
48
p_age
= age;
49
}
50
52
54
void
Shadok::setName
(
const
std::string & name){
55
p_name
= name;
56
}
57
59
61
int
Shadok::getAge
()
const
{
62
return
p_age
;
63
}
64
66
68
int
&
Shadok::getAge
(){
69
return
p_age
;
70
}
71
73
75
const
std::string &
Shadok::getName
()
const
{
76
return
p_name
;
77
}
78
80
82
std::string &
Shadok::getName
(){
83
return
p_name
;
84
}
85
87
89
void
Shadok::copyShadok
(
const
Shadok
& other){
90
p_age
= other.
p_age
;
91
p_name
= other.
p_name
;
92
}
93
95
void
Shadok::initialisationShadok
(){
96
p_age
= 0;
97
}
98
phoenix_getTypeName< Shadok >
std::string phoenix_getTypeName< Shadok >()
Get the name of the class Shadok.
Definition
Shadok.cpp:14
Shadok.h
Shadok::setAge
void setAge(int age)
Sets the age of the Shadok.
Definition
Shadok.cpp:47
Shadok::copyShadok
void copyShadok(const Shadok &other)
Copy Function of class Shadok.
Definition
Shadok.cpp:89
Shadok::getName
const std::string & getName() const
Gets the name of the Shadok.
Definition
Shadok.cpp:75
Shadok::p_age
int p_age
Age of the Shadok.
Definition
Shadok.h:45
Shadok::operator=
Shadok & operator=(const Shadok &other)
Operator = of class Shadok.
Definition
Shadok.cpp:39
Shadok::getAge
int getAge() const
Gets the age of the Shadok.
Definition
Shadok.cpp:61
Shadok::initialisationShadok
void initialisationShadok()
Initialisation Function of class Shadok.
Definition
Shadok.cpp:95
Shadok::p_name
std::string p_name
Name of the Shadok.
Definition
Shadok.h:47
Shadok::setName
void setName(const std::string &name)
Sets the name of the Shadok.
Definition
Shadok.cpp:54
Shadok::~Shadok
virtual ~Shadok()
Destructor of class Shadok.
Definition
Shadok.cpp:31
Shadok::Shadok
Shadok()
Constructor of class Shadok.
Definition
Shadok.cpp:19
platex
TESTS
TEST_FUNCTIONS
TEST_DATA_PROCESSING
Shadok.cpp
Generated by
1.18.0