/[H6]/MicrosoftDBLayer.h
ViewVC logotype

Diff of /MicrosoftDBLayer.h

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

revision 47 by torben, Wed Sep 6 20:27:24 2006 UTC revision 60 by torben, Mon Oct 22 13:00:14 2007 UTC
# Line 14  using namespace std; Line 14  using namespace std;
14    
15  class MicrosoftDBLayer : public DatabaseLayer  class MicrosoftDBLayer : public DatabaseLayer
16  {  {
 private:  
         CDatabase db;  
   
17  public:  public:
18          MicrosoftDBLayer(ConfigFile &config);          MicrosoftDBLayer(ConfigFile &config);
19          ~MicrosoftDBLayer(void);          virtual ~MicrosoftDBLayer(void);
20            
         vector<Person> GetPersonAll(void);  
         Person GetPerson(CString wantInits);  
   
         bool AddPerson(Person NewPerson);  
         bool UpdatePerson(Person ChangePerson);  
         bool DeletePerson(Person RemovePerson);  
         bool ReturnEquipment(CString barcode);  
         bool CheckoutEquipment(Person CheckPersID, Equipment CheckEquip, int Numdays);  
         bool EquipmentReservation(CString barcode, Person CheckPerson);  
         bool UpdateEquipment(Equipment CheckEquip);  
         bool AddEquipment(Equipment AddEquip);  
         vector<Equipment> GetEquipmentAll(void);  
         Equipment GetEquipment(CString wantBarcode);  
         bool DeleteEquipment(Equipment DelEquip);  
         vector<Equipment> Search(CString barcode, CString name, CString inits, bool available, bool reserved, bool deposited);  
         void checkReservations(CString barcode);  
         bool DeleteReservation(CString barcode, CString resid);  
21    
22  private:          virtual vector<Equipment> Search(CString barcode, CString name, CString inits, bool available, bool reserved, bool deposited);
23          void FillEquipmentVector(vector<Equipment> &buffer, CRecordset &rs);  protected:
24            virtual CString GenerateQueryForLatestCheckouts(CString barcode);
25  };  };

Legend:
Removed from v.47  
changed lines
  Added in v.60

  ViewVC Help
Powered by ViewVC 1.1.20