#ifndef TP5_PROTOPROJET_HPP #define TP5_PROTOPROJET_HPP 1 #include #include #include "Projet.hpp" class ProtoProjet : public Projet { Tache debut; Tache fin; friend std::ostream &operator<<(std::ostream &, const ProtoProjet &); public: ProtoProjet(std::vector taches, Tache debut, Tache fin); // constructor virtual ~ProtoProjet(); // destructor ProtoProjet(const ProtoProjet &); // copy constructor const ProtoProjet &operator=(const ProtoProjet &); // copy assignement // Remet tous les marquages à leur valeur initiale std::vector cleanMarks(){ for(bool t:this->getTaches()) t=false; }; // Insère une nouvelle tâche en la plaçant entre deux tâches au hasars bool ajoute(std::string nom, int duree); }; #endif