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 -