TransformationAbstract.h
1.67 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
60
61
62
63
64
65
66
#ifndef TRANSFORMATIONABSTRACT_H
#define TRANSFORMATIONABSTRACT_H
#include <list>
#include "TransformationRequest.h"
#include "TransformationResult.h"
#include "../Application/Application.h"
#include "../DataRecord/DataRecordList.h"
#include "../RequestManager/RequestAbstract.h"
using namespace std;
using namespace TREPS::Application;
using namespace TREPS::DataRecord;
using namespace TREPS::RequestManager;
namespace TREPS
{
namespace Transformation
{
class TransformationAbstractClass
{
public :
TransformationAbstractClass(RequestAbstractClass *trepsRequest);
virtual ~TransformationAbstractClass(void) = 0;
//init request
bool init(const char *srcFrame, const char *dstFrame, const char *srcCenter, const char *dstCenter,
const t_Time startTime, const t_Time stopTime, const char *srcVecDef,
const char *timeFieldId, const char *timeFormatId, const char *timePattern,
const char *srcDataFile, const char *transformationRequest);
//check if a frame exist for this engine
virtual bool checkFrame(const char *frame) = 0;
//get list of available frames for this engine
virtual t_StringList getAvailableFrameList(void) = 0;
//run request
virtual bool run(const char *workingDir) = 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);
TransformationRequestClass *request;
TransformationResultClass *result;
};
}
}
#endif