9 |
{ |
{ |
10 |
private: |
private: |
11 |
CDatabase db; |
CDatabase db; |
|
vector<Person> persons; |
|
|
vector<Equipment> equipments; |
|
12 |
|
|
13 |
public: |
public: |
14 |
DatabaseLayer(void); |
DatabaseLayer(void); |
20 |
bool AddPerson(Person NewPerson); |
bool AddPerson(Person NewPerson); |
21 |
bool UpdatePerson(Person ChangePerson); |
bool UpdatePerson(Person ChangePerson); |
22 |
bool DeletePerson(Person RemovePerson); |
bool DeletePerson(Person RemovePerson); |
23 |
|
bool ReturnEquipment(CString barcode); |
24 |
|
bool CheckoutEquipment(Person CheckPersID, Equipment CheckEquip, int Numdays); |
25 |
|
bool EquipmentReservation(CString barcode, Person CheckPerson); |
26 |
|
bool UpdateEquipment(Equipment CheckEquip); |
27 |
|
bool AddEquipment(Equipment AddEquip); |
28 |
|
vector<Equipment> GetEquipmentAll(void); |
29 |
|
Equipment GetEquipment(CString wantBarcode); |
30 |
|
bool DeleteEquipment(Equipment DelEquip); |
31 |
|
vector<Equipment> Search(CString barcode, CString name, CString inits, bool available, bool reserved, bool deposited); |
32 |
|
void checkReservations(CString barcode); |
33 |
|
bool DeleteReservation(CString barcode, CString resid); |
34 |
|
|
35 |
bool UpdateEquipment(Equipment ChangeEquipment); |
private: |
36 |
Equipment GetEquipment(CString barcode); |
void FillEquipmentVector(vector<Equipment> &buffer, CRecordset &rs); |
|
|
|
|
|
|
|
bool AddEquipment(Equipment e); |
|
|
vector<Equipment> GetEquipmentAll(); |
|
37 |
}; |
}; |