BodiesAbstract.h
1.23 KB
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
57
58
59
#ifndef BODIESABSTRACT_H
#define BODIESABSTRACT_H
#include <list>
#include "BodiesRequest.h"
#include "BodiesResult.h"
#include "../Application/Application.h"
#include "../File/FileWriterBodies.h"
#include "../RequestManager/RequestAbstract.h"
using namespace std;
using namespace TREPS::Application;
using namespace TREPS::RequestManager;
namespace TREPS
{
namespace Bodies
{
class BodiesAbstractClass
{
public :
BodiesAbstractClass(RequestAbstractClass *trepsRequest);
virtual ~BodiesAbstractClass(void) = 0;
//init request
bool init(const bool isSc, const t_Time *startTime, const t_Time *endTime);
//get list of available bodies for this engine
//virtual t_StringList getBodies(const t_Time *startTime, const t_Time *endTime) = 0;
//run request
virtual bool run() = 0;
//write request result
bool writeResult(const char *resultPath);
//get last error message
string getLastError(void);
protected :
ApplicationClass *app;
RequestAbstractClass *trepsRequest;
string errorMsg;
//get source vector list
//t_VectorList getSrcVectorsList(const char *vectorsDef, const char *srcFrame);
BodiesRequestClass *request;
BodiesResultClass *result;
};
}
}
#endif