/[H6]/DatabaseLayer.h
ViewVC logotype

Contents of /DatabaseLayer.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31 - (show annotations) (download)
Sun Sep 3 10:10:19 2006 UTC (17 years, 6 months ago) by torben
File MIME type: text/plain
File size: 1161 byte(s)
Added author/developer comments
1 /*
2 * Primary developers: Hedin & Kevin
3 */
4
5 #pragma once
6
7 #include "Containers.h"
8 #include <vector>
9
10 using namespace std;
11
12 class DatabaseLayer
13 {
14 private:
15 CDatabase db;
16
17 public:
18 DatabaseLayer(void);
19 ~DatabaseLayer(void);
20
21 vector<Person> GetPersonAll(void);
22 Person GetPerson(CString wantInits);
23
24 bool AddPerson(Person NewPerson);
25 bool UpdatePerson(Person ChangePerson);
26 bool DeletePerson(Person RemovePerson);
27 bool ReturnEquipment(CString barcode);
28 bool CheckoutEquipment(Person CheckPersID, Equipment CheckEquip, int Numdays);
29 bool EquipmentReservation(CString barcode, Person CheckPerson);
30 bool UpdateEquipment(Equipment CheckEquip);
31 bool AddEquipment(Equipment AddEquip);
32 vector<Equipment> GetEquipmentAll(void);
33 Equipment GetEquipment(CString wantBarcode);
34 bool DeleteEquipment(Equipment DelEquip);
35 vector<Equipment> Search(CString barcode, CString name, CString inits, bool available, bool reserved, bool deposited);
36 void checkReservations(CString barcode);
37 bool DeleteReservation(CString barcode, CString resid);
38
39 private:
40 void FillEquipmentVector(vector<Equipment> &buffer, CRecordset &rs);
41 };

  ViewVC Help
Powered by ViewVC 1.1.20