From 85a8a15eb2b2d6e004d8b22c755737bdf8a33a8f Mon Sep 17 00:00:00 2001 From: jopierron Date: Tue, 8 Mar 2022 07:37:40 +0000 Subject: [PATCH] Update Contact.hpp --- src/Contact.hpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/Contact.hpp b/src/Contact.hpp index 9774fad..d148eab 100644 --- a/src/Contact.hpp +++ b/src/Contact.hpp @@ -4,19 +4,19 @@ #include #include -class Contact { - Personne Proprietaire; - std::list 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 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 -