#ifndef ENTRETIENT_H #define ENTRETIENT_H #include #include "agentretien.h" #include "enclos.h" #include using namespace std; class AGENTRETIEN; class ENCLOS; class ENTRETIENT { // Associations ENCLOS *encl; AGENTRETIEN *ag; // Attributes private: int tpsjour; // Operations public: //Constructeur ENTRETIENT(int tps, ENCLOS *E, AGENTRETIEN *A){tpsjour=tps; encl=E; E->AjoutEntretient(this); ag=A; A->AjoutEntretient(this);}; //methodes void ModifierTemps(int tps){tpsjour=tps;}; //geteur ENCLOS *getencl ()const{ return encl;}; AGENTRETIEN *getag ()const { return ag;}; int gettps()const{return tpsjour;}; //Destructeur ~ENTRETIENT(); }; #endif