-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathStorageWheel.cpp
31 lines (21 loc) · 969 Bytes
/
StorageWheel.cpp
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
#include "StorageWheel.h"
//This method checks if there is an available slot with no medication in it, returns TRUE if full and FALSE if not
bool StorageWheel::isFull() {
return nbSlotsUsed == NB_OF_SLOTS;
}
//Add some medication to a slot with a provided name and quantity
bool StorageWheel::AddMedication(std::string medName, int qty) {
return true;
}
//Delete the medicine which name is provided
//This function is used after a med is dispensed and removed the right amount of pills to the med
//Default qty is set to 0 so when this function is called without the qty parameter, this means the medication slot is empty and the Medication object can be deleted from the vector
bool StorageWheel::DeleteMedication(std::string medName, int qty = 0) {
return true;
}
bool StorageWheel::RotateToRefillMed(std::string medName) {
return true;
}
bool StorageWheel::RotateToDispenseMed(std::string medName) {
return true;
}