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

34 lines
1.1 KiB
C++
Raw Normal View History

2023-10-19 23:05:11 +02:00
#ifndef TP5_PROTOPROJET_HPP
#define TP5_PROTOPROJET_HPP 1
#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 20:29:48 +02:00
ProtoProjet(); // 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 21:40:27 +02:00
void cleanMarks();
2023-10-27 18:01:17 +02:00
2023-10-27 21:51:27 +02:00
// Insère une nouvelle tâche en la plaçant entre deux tâches au hasard
bool ajoute(const std::string nom, const int duree);
// Insère une nouvelle tâche en la plaçant après la tâche avec l'ID
// renseignée et avant la tâche finale, en créant une dépendance
bool ajoute(const std::string nom, const int duree, const int id);
// Insère une nouvelle tâche en la plaçant entre les deux tâches renseignée
// via ID
bool ajoute(const std::string nom, const int duree, const int id1,
const int id2);
2023-10-19 23:05:11 +02:00
};
#endif