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/RunProjet.hpp

25 lines
681 B
C++
Raw Normal View History

2023-10-19 23:05:11 +02:00
#ifndef TP5_RUNPROJET_HPP
#define TP5_RUNPROJET_HPP 1
#include "ProtoProjet.hpp"
2023-10-28 03:07:28 +02:00
class RunProjet final : private ProtoProjet {
2023-10-19 23:05:11 +02:00
friend std::ostream &operator<<(std::ostream &, const RunProjet &);
public:
2023-10-28 02:35:22 +02:00
RunProjet() = delete; // remove default constructor
2023-10-28 02:09:10 +02:00
RunProjet(ProtoProjet &); // constructor
virtual ~RunProjet(); // destructor
2023-10-19 23:05:11 +02:00
RunProjet(const RunProjet &); // copy constructor
const RunProjet &operator=(const RunProjet &); // copy assignement
2023-10-28 03:07:28 +02:00
// Lance une tâche
bool run(const int id) const;
// Exécute une liste de tâches dans l'ordre donnée
void run(const std::vector<const Tache *> sequence_taches) const;
2023-10-19 23:05:11 +02:00
};
#endif