diff --git a/src/Contact.hpp b/src/Contact.hpp new file mode 100644 index 0000000..e055474 --- /dev/null +++ b/src/Contact.hpp @@ -0,0 +1,27 @@ +#ifndef CONTACT_hpp +#define CONTACT_hpp +#include"Personne.hpp" +#include +#include +#include + +namespace reseau{ + class Contact { + reseau::Personne Proprietaire; + std::list lesContacts{}; + void Recursive(std::list Contacts, std::set* set); + public: + Contact(const reseau::Personne& Proprietaire); + const Personne& getProprio() const; + bool ajouterContact(const reseau::Personne& unContact); + bool supprimerContact(const reseau::Personne& unContact); + bool rechercher(const Personne& unContact); + void afficherContactDirect(); + void afficherContactIndirect(std::list Contacts); + // ~Contact(); + }; + std::ostream& operator<<(std::ostream& os, reseau::Personne p); + bool operator==(reseau::Personne p1, reseau::Personne p2); +} + +#endif