TransformationRequest.h
2.54 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#ifndef TRANSFORMATIONREQUEST_H
#define TRANSFORMATIONREQUEST_H
#include <string>
#include <iostream>
#include "../Common/TREPSTypes.h"
#include "../DataRecord/DataRecordList.h"
using namespace std;
using namespace TREPS::Common;
using namespace TREPS::DataRecord;
namespace TREPS
{
namespace Transformation
{
class TransformationRequestClass
{
public :
TransformationRequestClass(void);
~TransformationRequestClass(void);
//set transformation frames
void setFrames(const char *srcFrame, const char *dstFrame);
//get transformation source frame
string getSrcFrame(void) const;
//get transformation destination frame
string getDstFrame(void) const;
//set transformation centers for RTN/RTP frames
void setCenters(const char *srcCenter, const char *dstCenter);
//get transformation source center
string getSrcCenter(void) const;
//get transformation destination center
string getDstCenter(void) const;
//set times
void setTimes(const t_Time startTime, const t_Time stopTime);
//get start time
t_Time getStartTime(void) const;
//get end time
t_Time getStopTime(void) const;
//set source vectors defintiion
bool setSrcVectorsDefinition(const char *srcVecDef, const char *srcFrame);
//get source vectors list
t_VectorList *getSrcVectors(void) const;
//get source vectors definition
string getSrcVectorsDefinition(void);
//set source time definition
bool setTimeDefinition(const char *timeFieldId, const char *timeFormatId, const char *timePattern);
//get source time field id
string getTimeFieldId(void) const;
//get source time format
t_TimeFormat getTimeFormat(void) const;
//get source time pattern
string getTimePattern(void) const;
//laod source data
bool loadSrcData(const char *srcFilePath);
//get source data
DataRecordListClass *getSrcDataRecordList(void) const;
//get number of source fields
int getSrcNbFields(void);
//get list of source fields
t_FieldList *getSrcFields(void) const;
//save transformation request to file
bool saveToFile(const char *filePath);
//load transformation request to file
bool loadFromFile(const char *filePath);
private :
string srcFrame;
string dstFrame;
string srcCenter;
string dstCenter;
t_Time startTime;
t_Time stopTime;
t_VectorList srcVectors;
string timeFieldId;
t_TimeFormat timeFormat;
string timePattern;
t_FileInfo srcInfo;
DataRecordListClass srcData;
};
}
}
#endif