PhoenixPresentation  2.0.0
Set of cmake function to automate presentation generation
Shadok.cpp
Go to the documentation of this file.
1 /***************************************
2  Auteur : Pierre Aubert
3  Mail : pierre.aubert@lapp.in2p3.fr
4  Licence : CeCILL-C
5 ****************************************/
6 
7 
8 #include "Shadok.h"
9 
13 }
14 
16 
18 Shadok::Shadok(const Shadok & other){
19  copyShadok(other);
20 }
21 
24 
25 }
26 
28 
32  copyShadok(other);
33  return *this;
34 }
35 
37 
39 void Shadok::setAge(int age){p_age = age;}
40 
42 
44 void Shadok::setName(const std::string & name){p_name = name;}
45 
47 
49 int Shadok::getAge() const{return p_age;}
50 
52 
54 int Shadok::getAge(){return p_age;}
55 
57 
59 const std::string & Shadok::getName() const{return p_name;}
60 
62 
64 std::string & Shadok::getName(){return p_name;}
65 
67 
69 void Shadok::copyShadok(const Shadok & other){
70  p_age = other.p_age;
71  p_name = other.p_name;
72 }
73 
76  p_age = 0;
77  p_name = "";
78 }
79 
80 
81 
82 
83 
test class for the data_stream automatic api
Definition: Shadok.h:13
void setAge(int age)
Set the age of the Shadok.
Definition: Shadok.cpp:39
void copyShadok(const Shadok &other)
Copy function of Shadok.
Definition: Shadok.cpp:69
const std::string & getName() const
Get the name of the Shadok.
Definition: Shadok.cpp:59
int p_age
Age the Shadok.
Definition: Shadok.h:39
Shadok & operator=(const Shadok &other)
Definition of equal operator of Shadok.
Definition: Shadok.cpp:31
int getAge() const
Get the age of the Shadok.
Definition: Shadok.cpp:49
void initialisationShadok()
Initialisation function of the class Shadok.
Definition: Shadok.cpp:75
std::string p_name
Name of the Shadok.
Definition: Shadok.h:41
void setName(const std::string &name)
Set the name of the Shadok.
Definition: Shadok.cpp:44
virtual ~Shadok()
Destructeur of Shadok.
Definition: Shadok.cpp:23
Shadok()
Default constructeur of Shadok.
Definition: Shadok.cpp:11