Blame view

server/kernel/src/RequestManager/RequestFileInfoAbstract.h 1.01 KB
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
52
53
54
55
56
#ifndef REQUESTFILEINFOABSTRACT_H
#define REQUESTFILEINFOABSTRACT_H

#include <string>

#include "RequestAbstract.h"

#include "../Common/TREPSTypes.h"
#include "../File/FileLoaderManager.h"

using namespace TREPS::Common;
using namespace TREPS::File;

namespace TREPS
{
	namespace RequestManager
	{
		class RequestFileInfoAbstractClass : public RequestAbstractClass
		{
			public:
				RequestFileInfoAbstractClass(void);

				~RequestFileInfoAbstractClass(void);

				//load request inputs
				bool load(RequestLoaderClass *loader);

				//run request
				bool run(void);

				//write request result
				void writeResult(ResultWriterClass *writer);

				//get suffix used for result file
				string getResultFileSuffix(void);

				//get path to result XML file
				string getXMLFilePath(void);

				//get result string
				string getStringResult(void);

				//get path to file to load
				virtual string getFilePath(void) = 0;

			private:
				//information about file
				t_FileInfo info;

				string errorMsg;
		}; 

	}
}

#endif