Parent Directory | Revision Log
Refactored the database layer classes. Pushed most of the functions to the parent class.
1 | torben | 43 | /* |
2 | * Primary developers: Hedin & Kevin | ||
3 | */ | ||
4 | |||
5 | #pragma once | ||
6 | |||
7 | #include "DatabaseLayer.h" | ||
8 | #include "Containers.h" | ||
9 | torben | 47 | #include "ConfigFile.h" |
10 | torben | 43 | #include <vector> |
11 | |||
12 | using namespace std; | ||
13 | |||
14 | class PostgresLayer : public DatabaseLayer | ||
15 | { | ||
16 | public: | ||
17 | torben | 47 | PostgresLayer(ConfigFile &config); |
18 | torben | 60 | virtual ~PostgresLayer(void); |
19 | torben | 43 | |
20 | |||
21 | torben | 60 | virtual vector<Equipment> Search(CString barcode, CString name, CString inits, bool available, bool reserved, bool deposited); |
22 | protected: | ||
23 | virtual CString GenerateQueryForLatestCheckouts(CString barcode); | ||
24 | torben | 43 | }; |
ViewVC Help | |
Powered by ViewVC 1.1.20 |