From d2ed94c3ed21fd60d3d877d48c9b1da77a9ee19f Mon Sep 17 00:00:00 2001 From: jopierron Date: Fri, 1 Apr 2022 08:05:54 +0000 Subject: [PATCH] Upload New File --- src/Contact.hpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/Contact.hpp 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