Blame view

server/kernel/src/RequestManager/RequestManager.h 894 Bytes
346b85c6   Benjamin Renard   First commit with...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef REQUESTMANAGER_H
#define REQUESTMANAGER_H

#include <string>

#include "../Application/Application.h"
#include "RequestAbstract.h"
#include "RequestLoader.h"
#include "ResultWriter.h"

using namespace TREPS::Application;

namespace TREPS
{
	namespace RequestManager
	{
		class RequestManagerClass
		{
			public:
				RequestManagerClass(void);

				~RequestManagerClass(void);

				//init request
				bool init(const char *file_path);
				
				//run request
				bool run(void);

				//write request result
				string writeResult(bool runRes);

				//get result file name
				string getResultFileName(void);

				//get cache result
				string getCacheResult(void);
				
			private:
				ApplicationClass *app;

				RequestLoaderClass *loader;
				
				ResultWriterClass *writer;
				
				RequestAbstractClass *request;
		};
	}
}	

#endif