-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroom.h
More file actions
56 lines (43 loc) · 1.32 KB
/
Copy pathroom.h
File metadata and controls
56 lines (43 loc) · 1.32 KB
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
//Ruben Palomino
#ifndef ROOM_H
#define ROOM_H
#include <string>
struct RoomType{
int typeID;
std::string name;
int beds;
int capacity;
double baseRate;
};
//=======================================Modification by Eliseo (Test)================================
struct TimeRange {
int date_range_start; // Nov-20-2025 would be 11202025
int date_range_end; // Nov-21-2025 would be 11212025
};
//====================================================================================================
class Room{
private:
int roomID;
int roomNo;
int roomFloor;
RoomType roomType;
bool isAvailable{true};
public:
//Constructors
Room() = default;
Room(int id, int num, int floor, const RoomType& type, bool available = true);
//Getters
int getRoomID() const {return roomID;}
int getRoomNo() const {return roomNo;}
int getRoomFloor() const {return roomFloor;}
const RoomType& getRoomType() const {return roomType;}
//Setters
void setRoomID(int id) {roomID = id;}
void setRoomNo(int num) {roomNo = num;}
void setRoomFloor(int floor) {roomFloor = floor;}
void setRoomType(const RoomType& type);
//Helper Methods
bool isRoomAvailable() const {return isAvailable;}
void setAvailable(bool available) {isAvailable = available;}
};
#endif