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

38 lines
1 KiB
C++
Raw Permalink Normal View History

2023-10-19 23:05:11 +02:00
#ifndef TP5_GESTIONNAIRE_HPP
#define TP5_GESTIONNAIRE_HPP 1
2023-10-28 03:56:31 +02:00
#include "RunProjet.hpp"
2023-10-19 23:05:11 +02:00
class Gestionnaire {
2023-10-29 17:17:31 +01:00
int salaire_attendu;
int salaire_recu;
2023-10-19 23:05:11 +02:00
2023-10-28 11:51:31 +02:00
// Renvoie le reste à payer pour donner une expertise
int reste_a_payer() const;
2023-10-29 17:17:31 +01:00
friend std::ostream &operator<<(std::ostream &, const Gestionnaire &);
2023-10-28 04:24:35 +02:00
2023-10-28 12:00:50 +02:00
protected:
2023-10-28 04:24:35 +02:00
// Auxiliaire pour simplifier l'affichage d'un projet
std::ostream &print(std::ostream &) const;
2023-10-28 11:51:31 +02:00
// Vrai si Gestionnaire à été payé.e
bool payer() const;
2023-10-19 23:05:11 +02:00
public:
Gestionnaire(); // constructor
virtual ~Gestionnaire(); // destructor
Gestionnaire(const Gestionnaire &); // copy constructor
const Gestionnaire &operator=(const Gestionnaire &); // copy assignement
2023-10-28 03:56:31 +02:00
2023-10-28 11:51:31 +02:00
// Paye Gestionnaire, renvoie le montant restant à payer
int payer(const int argent);
2023-10-28 03:56:31 +02:00
// Renvoie l'ordonnancement et la durée totale restante
2023-10-28 11:51:31 +02:00
// Renvoie une liste vide et une durée totale -1 si pas payé.e
2023-10-28 12:00:50 +02:00
virtual std::pair<std::vector<int>, int> avis(const RunProjet &) const = 0;
2023-10-19 23:05:11 +02:00
};
#endif