PhoenixSwarm  6.1.0
Persistent processing programs exchanging data over sockets
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
13template<>
15 return "Shadok";
16}
17
22
24
26Shadok::Shadok(const Shadok & other){
27 copyShadok(other);
28}
29
34
36
40 copyShadok(other);
41 return *this;
42}
43
45
47void Shadok::setAge(int age){
48 p_age = age;
49}
50
52
54void Shadok::setName(const std::string & name){
55 p_name = name;
56}
57
59
61int Shadok::getAge() const{
62 return p_age;
63}
64
66
69 return p_age;
70}
71
73
75const std::string & Shadok::getName() const{
76 return p_name;
77}
78
80
82std::string & Shadok::getName(){
83 return p_name;
84}
85
87
89void Shadok::copyShadok(const Shadok & other){
90 p_age = other.p_age;
91 p_name = other.p_name;
92}
93
98
std::string phoenix_getTypeName< Shadok >()
Get the name of the class Shadok.
Definition Shadok.cpp:14
void setAge(int age)
Sets the age of the Shadok.
Definition Shadok.cpp:47
void copyShadok(const Shadok &other)
Copy Function of class Shadok.
Definition Shadok.cpp:89
const std::string & getName() const
Gets the name of the Shadok.
Definition Shadok.cpp:75
int p_age
Age of the Shadok.
Definition Shadok.h:45
Shadok & operator=(const Shadok &other)
Operator = of class Shadok.
Definition Shadok.cpp:39
int getAge() const
Gets the age of the Shadok.
Definition Shadok.cpp:61
void initialisationShadok()
Initialisation Function of class Shadok.
Definition Shadok.cpp:95
std::string p_name
Name of the Shadok.
Definition Shadok.h:47
void setName(const std::string &name)
Sets the name of the Shadok.
Definition Shadok.cpp:54
virtual ~Shadok()
Destructor of class Shadok.
Definition Shadok.cpp:31
Shadok()
Constructor of class Shadok.
Definition Shadok.cpp:19