/[H8]/trunk/h8server/MySQLLayer.h
ViewVC logotype

Annotation of /trunk/h8server/MySQLLayer.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 100 - (hide annotations) (download)
Fri May 25 08:34:08 2007 UTC (17 years ago) by kevin
File MIME type: text/plain
File size: 1512 byte(s)
added test program and fixed some log problems
1 kevin 87
2     #pragma once
3    
4     #include "DatabaseLayer.h"
5     #include "Containers.h"
6     #include "ConfigFile.h"
7     #include <vector>
8    
9     using namespace std;
10    
11     class MySQLLayer : public DatabaseLayer
12     {
13     private:
14     CDatabase db;
15    
16     public:
17     MySQLLayer(ConfigFile &config);
18     ~MySQLLayer(void);
19     /*
20     vector<Person> GetPersonAll(void);
21     Person GetPerson(CString wantInits);
22    
23     bool AddPerson(Person NewPerson);
24     bool UpdatePerson(Person ChangePerson);
25     bool DeletePerson(Person RemovePerson);
26     bool ReturnEquipment(CString barcode);
27     bool CheckoutEquipment(Person CheckPersID, Equipment CheckEquip, int Numdays);
28     bool EquipmentReservation(CString barcode, Person CheckPerson);
29     bool UpdateEquipment(Equipment CheckEquip);
30     bool AddEquipment(Equipment AddEquip);
31     vector<Equipment> GetEquipmentAll(void);
32     */
33 kevin 100 translog Transaktionslog(CString TerminalID, CString logID);
34 kevin 87 log TransaktionsEnhed(CString transaktion, CString price,CString barcode,CString quantity);
35     bool MySQLLayer::Deletelastentry(CString ID, CString barcode);
36     bool MySQLLayer::Deletesession(CString ID);
37     Equipment GetEquipment(CString wantBarcode, CString wantdescription, CString wantprice);
38     /*
39     bool DeleteEquipment(Equipment DelEquip);
40     vector<Equipment> Search(CString barcode, CString name, CString inits, bool available, bool reserved, bool deposited);
41     */
42     void search(CString barcode);
43     bool DeleteReservation(CString barcode, CString resid);
44    
45     private:
46     //void FillEquipmentVector(vector<Equipment> &buffer, CRecordset &rs);
47     };

  ViewVC Help
Powered by ViewVC 1.1.20