1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
__gc class vars
{
public:
/* CONSTRUCTEURS */
vars()
{
_code="";
_type="";
_cas="";
_rec="";
_debut="";
_nbmod="";
}
vars(String* code)
{
_code=code;
_type="";
_cas="";
_rec="";
_debut="";
_nbmod="";
}
vars(String* code, String* type, String* pos,
String* rec, String* cas,
String* debut, String* nbmod)
{
_code=code;
_type=type;
_pos=pos;
_rec=rec;
_cas=cas;
_debut=debut;
_nbmod=nbmod;
}
/* ACCESSEURS */
String* getCode(){return _code;}
String* getCas(){return _cas;}
String* getType(){return _type;};
String* getRec(){return _rec;}
String* getDebut(){return _debut;}
String* getNbmod(){return _nbmod;}
String* getPos(){return _pos;}
/* MUTATEURS */
void setCode(String* code){_code=code;}
void setCas(String* cas){_cas=cas;}
void setType(String* type){_type=type;}
void setRec(String* rec){_rec=rec;}
void setDebut(String* debut){_debut=debut;}
void setNbmod(String* nbmod){_nbmod=nbmod;}
void setPos(String* pos){_pos=pos;}
private:
// tous les parametres seront de type String car manipulés en tant que tel
String* _code;
String* _type;
String* _cas;
String* _rec;
String* _debut;
String* _nbmod;
String* _pos;
}; |
Partager