/[H6]/DatabaseLayer.h
ViewVC logotype

Annotation of /DatabaseLayer.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9 - (hide annotations) (download)
Wed Aug 30 21:57:57 2006 UTC (17 years, 7 months ago) by torben
File MIME type: text/plain
File size: 629 byte(s)
Finished (???) administration part - plus made a dummy offline version of the DatabaseLayer class.
1 torben 8 #pragma once
2    
3     #include "Containers.h"
4     #include <vector>
5    
6     using namespace std;
7    
8     class DatabaseLayer
9     {
10     private:
11     CDatabase db;
12 torben 9 vector<Person> persons;
13     vector<Equipment> equipments;
14 torben 8
15     public:
16     DatabaseLayer(void);
17     ~DatabaseLayer(void);
18    
19     vector<Person> GetPersonAll(void);
20     Person GetPerson(CString wantInits);
21    
22     bool AddPerson(Person NewPerson);
23     bool UpdatePerson(Person ChangePerson);
24     bool DeletePerson(Person RemovePerson);
25 torben 9
26     bool UpdateEquipment(Equipment ChangeEquipment);
27     Equipment GetEquipment(CString barcode);
28    
29    
30     bool AddEquipment(Equipment e);
31     vector<Equipment> GetEquipmentAll();
32 torben 8 };

  ViewVC Help
Powered by ViewVC 1.1.20