diff --git a/Makefile b/Makefile index c7c566a..21f394e 100644 --- a/Makefile +++ b/Makefile @@ -44,6 +44,5 @@ clean: pdf-clean archive: pdf-make cp "$(PDF_LOCATION)/$(PDF_FILE)" . $(TAR) "$(ARCHIVE)" $(SOURCES) $(wildcard includes/*.hpp) Makefile \ - binome.txt "$(PDF_FILE)" -# diagramme_uml.* + binome.txt "$(PDF_FILE)" diagramme_uml.png $(RM) "$(PDF_FILE)" diff --git a/includes/Gestionnaire.hpp b/includes/Gestionnaire.hpp index 9985760..3ef20b0 100644 --- a/includes/Gestionnaire.hpp +++ b/includes/Gestionnaire.hpp @@ -4,13 +4,13 @@ #include "RunProjet.hpp" class Gestionnaire { - friend std::ostream &operator<<(std::ostream &, const Gestionnaire &); + int salaire_attendu; + int salaire_recu; // Renvoie le reste à payer pour donner une expertise int reste_a_payer() const; - int salaire_attendu; - int salaire_recu; + friend std::ostream &operator<<(std::ostream &, const Gestionnaire &); protected: // Auxiliaire pour simplifier l'affichage d'un projet diff --git a/includes/Projet.hpp b/includes/Projet.hpp index 1d4d801..46ef34d 100644 --- a/includes/Projet.hpp +++ b/includes/Projet.hpp @@ -8,10 +8,6 @@ struct RunProjet; class Projet { - - friend std::ostream &operator<<(std::ostream &, const Projet &); - friend RunProjet; - // Auxilliaire pour simplifier les copies void _copy(const Projet &); @@ -21,6 +17,9 @@ class Projet { // Remet tous les marquages à leur valeur initiale virtual void cleanMarks() const = 0; + friend std::ostream &operator<<(std::ostream &, const Projet &); + friend RunProjet; + protected: Tache // Source du graphe aka la dernière à être exécutée diff --git a/includes/ProtoProjet.hpp b/includes/ProtoProjet.hpp index 2d48eab..4cbb5b9 100644 --- a/includes/ProtoProjet.hpp +++ b/includes/ProtoProjet.hpp @@ -4,11 +4,10 @@ #include "Projet.hpp" class ProtoProjet : public Projet { + void cleanMarks() const; friend std::ostream &operator<<(std::ostream &, const ProtoProjet &); - void cleanMarks() const; - public: ProtoProjet(); // constructor virtual ~ProtoProjet(); // destructor diff --git a/includes/RunProjet.hpp b/includes/RunProjet.hpp index 1cd2e7c..a84366d 100644 --- a/includes/RunProjet.hpp +++ b/includes/RunProjet.hpp @@ -8,6 +8,7 @@ struct Expert; class RunProjet final : protected ProtoProjet { friend std::ostream &operator<<(std::ostream &, const RunProjet &); + // Ami pour pouvoir consulter les tâches friend Consultant; friend Expert; diff --git a/report/explications.tex b/report/explications.tex index 7ad15bf..1af37fb 100644 --- a/report/explications.tex +++ b/report/explications.tex @@ -40,7 +40,7 @@ soit immuable. \begin{figure}[h] \centering - % \includegraphics[width=\textwidth]{../diagramme.png} + \includegraphics[width=\textwidth]{../diagramme_uml.png} \caption{Diagramme UML} \end{figure}