Parent Directory | Revision Log
Finished (???) administration part - plus made a dummy offline version of the DatabaseLayer class.
1 | #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 | vector<Person> persons; |
13 | vector<Equipment> equipments; |
14 | |
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 | |
26 | bool UpdateEquipment(Equipment ChangeEquipment); |
27 | Equipment GetEquipment(CString barcode); |
28 | |
29 | |
30 | bool AddEquipment(Equipment e); |
31 | vector<Equipment> GetEquipmentAll(); |
32 | }; |
ViewVC Help | |
Powered by ViewVC 1.1.20 |