/[H6]/DatabaseLayer.h
ViewVC logotype

Diff of /DatabaseLayer.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 9 by torben, Wed Aug 30 21:57:57 2006 UTC revision 31 by torben, Sun Sep 3 10:10:19 2006 UTC
# Line 1  Line 1 
1    /*
2     * Primary developers: Hedin & Kevin
3     */
4    
5  #pragma once  #pragma once
6    
7  #include "Containers.h"  #include "Containers.h"
# Line 9  class DatabaseLayer Line 13  class DatabaseLayer
13  {  {
14  private:  private:
15          CDatabase db;          CDatabase db;
         vector<Person> persons;  
         vector<Equipment> equipments;  
16    
17  public:  public:
18          DatabaseLayer(void);          DatabaseLayer(void);
# Line 22  public: Line 24  public:
24          bool AddPerson(Person NewPerson);          bool AddPerson(Person NewPerson);
25          bool UpdatePerson(Person ChangePerson);          bool UpdatePerson(Person ChangePerson);
26          bool DeletePerson(Person RemovePerson);          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          bool UpdateEquipment(Equipment ChangeEquipment);  private:
40          Equipment GetEquipment(CString barcode);          void FillEquipmentVector(vector<Equipment> &buffer, CRecordset &rs);
   
   
         bool AddEquipment(Equipment e);  
         vector<Equipment> GetEquipmentAll();  
41  };  };

Legend:
Removed from v.9  
changed lines
  Added in v.31

  ViewVC Help
Powered by ViewVC 1.1.20