This repository has been archived on 2023-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
GestionProjet/includes/ProtoProjet.hpp
2023-10-26 19:08:00 +02:00

30 lines
836 B
C++

#ifndef TP5_PROTOPROJET_HPP
#define TP5_PROTOPROJET_HPP 1
#include <iostream>
#include <vector>
#include "Projet.hpp"
class ProtoProjet : public Projet {
Tache debut;
Tache fin;
friend std::ostream &operator<<(std::ostream &, const ProtoProjet &);
public:
ProtoProjet(std::vector<Tache *, bool> 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<Tache *, bool> 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