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

30 lines
758 B
C++
Raw Normal View History

2023-10-19 23:05:11 +02:00
#ifndef TP5_PROTOPROJET_HPP
#define TP5_PROTOPROJET_HPP 1
2023-10-26 19:08:00 +02:00
#include <iostream>
#include <vector>
2023-10-27 18:01:17 +02:00
2023-10-19 23:05:11 +02:00
#include "Projet.hpp"
class ProtoProjet : public Projet {
2023-10-27 18:01:17 +02:00
/* Tache taches; */
2023-10-19 23:05:11 +02:00
friend std::ostream &operator<<(std::ostream &, const ProtoProjet &);
public:
2023-10-27 18:01:17 +02:00
ProtoProjet();
ProtoProjet(VecTaches taches, Tache debut,
Tache fin); // constructor
2023-10-19 23:05:11 +02:00
virtual ~ProtoProjet(); // destructor
ProtoProjet(const ProtoProjet &); // copy constructor
const ProtoProjet &operator=(const ProtoProjet &); // copy assignement
2023-10-26 19:08:00 +02:00
// Remet tous les marquages à leur valeur initiale
2023-10-27 18:01:17 +02:00
void cleanMarks();
2023-10-26 19:08:00 +02:00
// Insère une nouvelle tâche en la plaçant entre deux tâches au hasars
bool ajoute(std::string nom, int duree);
2023-10-19 23:05:11 +02:00
};
#endif