-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRoomRes.h
43 lines (35 loc) · 1018 Bytes
/
RoomRes.h
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
#ifndef ROOMRES_H
#define ROOMRES_H
#include <string>
#include "Reservation.h"
enum Basis {breakfast = 0, half = 1, full = 2};
class RoomRes : public Reservation {
private:
unsigned int guests;
Basis roomBasis;
public:
RoomRes(
std::string _surname,
std::string _name,
std::string _phone,
std::string _email,
unsigned int _guests,
unsigned int _arrDateY,
unsigned int _arrDateM,
unsigned int _arrDateD,
unsigned int _depDateY,
unsigned int _depDateM,
unsigned int _depDateD,
Basis _roomBasis,
std::string _notes,
std::string _room,
unsigned int _id = getCounter() + 1
);
unsigned int getGuests() const;
Basis getBasis() const;
void setGuests(unsigned int _guests);
void setBasis(Basis _roomBasis);
virtual void accept(ReservationVisitorInterface& visitor) override;
virtual void save(ReservationVisitorInterface& visitor) override;
};
#endif