-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPersonne.h
55 lines (44 loc) · 1.22 KB
/
Personne.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/**
* \file Personne.h
* \brief Prototype de la classe Personne
* \version 0.1
* \date 2014-10-12
* \author etudiant
*/
#ifndef PERSONNE_H_
#define PERSONNE_H_
#include "Adresse.h"
#include "Date.h"
namespace election
{
/**
* \class Personne
* \brief Prototype de la classe Personne.
*/
class Personne
{
friend std::ostream& operator<<(std::ostream& p_os, const Personne& p_personne);
public:
Personne(const std::string& p_nas,const std::string& p_prenom,const std::string& p_nom,
const util::Date& p_dateNaissance, const util::Adresse& p_adresse);
const util::Adresse& reqAdresse() const;
util::Date reqDateNaissance() const;
const std::string& reqNas() const;
const std::string& reqNom() const;
const std::string& reqPrenom() const;
std::string reqPersonneFormate();
void asgAdresse(const util::Adresse& adresse);
void asgDateNaissance(util::Date dateNaissance);
void asgNas(const std::string& nas);
void asgNom(const std::string& nom);
void asgPrenom(const std::string& prenom);
bool operator==(const Personne& p_personne) const;
private:
std::string m_nas;
std::string m_prenom;
std::string m_nom;
util::Date m_dateNaissance;
util::Adresse m_adresse;
};
} /* namespace election */
#endif /* PERSONNE_H_ */