TransformationResult.h
1.56 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 TRANSFORMATIONRESULT_H
#define TRANSFORMATIONRESULT_H
#include "../Common/TREPSTypes.h"
#include "../Application/Application.h"
#include "../DataRecord/DataRecordList.h"
#include "../Export/ExportManager.h"
//Suffix used for a result field
#define RESULT_FIELD_SUFFIX "_treps"
////Time id used in a result file
#define RESULT_TIME_ID "TREPS_TIME"
////pattern used to write a time for a result file (data.res in the workind dir)
#define RESULT_TIME_PATTERN "[YYYY]-[MM]-[DD]T[hh]:[mm]:[ss].[mls]Z"
using namespace TREPS::Common;
using namespace TREPS::Application;
using namespace TREPS::DataRecord;
using namespace TREPS::Export;
namespace TREPS
{
namespace Transformation
{
class TransformationResultClass
{
public :
TransformationResultClass(void);
~TransformationResultClass(void);
//init transformation result
bool init(t_TimeFormat timeFormat, const DataRecordListClass *srcData);
//get result data record list
DataRecordListClass *getDstDataRecordList(void) const;
//get result fields list
t_FieldList *getDstFieldList(void) const;
//add a result vector
bool addFieldVector(const char *fieldId, const DataRecordListClass *data,
const char *comp_1, const char *comp_2, const char *comp_3, const char *frame);
//clone from data record list and fields list
void clone(const t_FieldList *fields, const DataRecordListClass *data, const char *timeFieldId);
private :
ApplicationClass *app;
ExportManagerClass *exportMgr;
t_FieldList dstFields;
DataRecordListClass dstData;
};
}
}
#endif