/* * room.h * * Gouverneur Th. - Cuisinier * * Declaration of a room. * */ #ifndef ROOM_H #define ROOM_H #include #include #include class Reservation; /* need pre-declaration for reference in Room */ class Room { std::string num; std::string type; LLU book; public: Room(); Room(std::string, std::string); ~Room(); inline void setNum(std::string s) { num = s; }; inline void setType(std::string s) { type = s; }; inline void addReservation(Reservation *r) { book.Push(r); }; inline std::string getNum(void)const { return num; }; inline std::string getType(void)const { return type; }; inline LLU* getReservations(void) {return &book; }; }; class Reservation { std::string nom; /* nom du client */ // std::string date;/* date d'arrivee */ date d; std::string nbr; /* nombre de nuits */ Room *room; /* chambre reservee */ public: Reservation(); Reservation(std::string, std::string, std::string); ~Reservation(); inline void setNom(std::string s) { nom = s; }; inline void setDate(date s) { d = s; }; inline void setNbr(std::string s) { nbr = s; }; inline void setRoom(Room *r) { room = r; }; inline std::string getNom(void)const { return nom; }; inline date getDate(void)const { return d; }; inline std::string getNbr(void)const { return nbr; }; inline Room *getRoom(void)const { return room; }; }; #endif