|
|
|
@ -4,19 +4,19 @@
|
|
|
|
|
#include<list>
|
|
|
|
|
#include<iostream>
|
|
|
|
|
|
|
|
|
|
class Contact {
|
|
|
|
|
Personne Proprietaire;
|
|
|
|
|
std::list<Personne*> lesContacts{};
|
|
|
|
|
public:
|
|
|
|
|
Contact(const Personne& Proprietaire);
|
|
|
|
|
void ajouterContact(const Personne& unContact);
|
|
|
|
|
bool supprimerContact(const Personne& unContact);
|
|
|
|
|
// void envoyerMessage(std::string texte, Personne p);
|
|
|
|
|
// void recevoirMessage(std::string texte, Personne p);
|
|
|
|
|
// ~Contact();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
std::ostream& operator<<(std::ostream& os, Personne p);
|
|
|
|
|
namespace reseau{
|
|
|
|
|
class Contact {
|
|
|
|
|
reseau::Personne Proprietaire;
|
|
|
|
|
std::list<reseau::Personne*> lesContacts{};
|
|
|
|
|
public:
|
|
|
|
|
Contact(const reseau::Personne& Proprietaire);
|
|
|
|
|
void ajouterContact(const reseau::Personne& unContact);
|
|
|
|
|
bool supprimerContact(const reseau::Personne& unContact);
|
|
|
|
|
// void envoyerMessage(std::string texte, reseau::Personne p);
|
|
|
|
|
// void recevoirMessage(std::string texte, reseau::Personne p);
|
|
|
|
|
// ~Contact();
|
|
|
|
|
};
|
|
|
|
|
std::ostream& operator<<(std::ostream& os, reseau::Personne p);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|