/[H6]/MicrosoftDBLayer.h
ViewVC logotype

Contents of /MicrosoftDBLayer.h

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.20