/[H6]/DatabaseLayer.h
ViewVC logotype

Annotation of /DatabaseLayer.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31 - (hide annotations) (download)
Sun Sep 3 10:10:19 2006 UTC (17 years, 7 months ago) by torben
File MIME type: text/plain
File size: 1161 byte(s)
Added author/developer comments
1 torben 31 /*
2     * Primary developers: Hedin & Kevin
3     */
4    
5 torben 8 #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 torben 17 bool ReturnEquipment(CString barcode);
28     bool CheckoutEquipment(Person CheckPersID, Equipment CheckEquip, int Numdays);
29 torben 27 bool EquipmentReservation(CString barcode, Person CheckPerson);
30 torben 17 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 torben 27 void checkReservations(CString barcode);
37     bool DeleteReservation(CString barcode, CString resid);
38    
39     private:
40 torben 17 void FillEquipmentVector(vector<Equipment> &buffer, CRecordset &rs);
41 torben 8 };

  ViewVC Help
Powered by ViewVC 1.1.20