2022-01-04 17:32:19 +08:00
|
|
|
#pragma once
|
|
|
|
#include "pch.h"
|
|
|
|
#include <vector>
|
|
|
|
#include "ZZ_Types.h"
|
|
|
|
#include "DataFileTransfer.h"
|
|
|
|
#include "RadianceConverter.h"
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
using namespace ZZ_MISCDEF::ZZ_DATAFILE;
|
|
|
|
using namespace ZZ_MISCDEF::ZZ_RUNPARAMS;
|
|
|
|
using namespace ZZ_MISCDEF::IRIS::FS;
|
|
|
|
|
|
|
|
class CMainDataUploader :public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
CMainDataUploader(QObject* parent = nullptr);
|
|
|
|
~CMainDataUploader();
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
|
|
|
|
//set attributes
|
2022-01-10 17:46:44 +08:00
|
|
|
void SetErr(ErrInfo struErrInfo);
|
2022-01-04 17:32:19 +08:00
|
|
|
void SetData(vector<vector<DataFrame>> vecData);
|
|
|
|
void SetRTGP(RunTimeGrabberParams struGrabberRTParams);
|
|
|
|
void SetContext(EContext struEC, MEContext struMEC);
|
|
|
|
|
|
|
|
//load calibration file after set attributes
|
|
|
|
int Initialize();
|
2022-01-10 17:46:44 +08:00
|
|
|
//int Init_Self();
|
2022-01-04 17:32:19 +08:00
|
|
|
|
|
|
|
void Calibration();
|
|
|
|
|
2022-01-06 17:25:43 +08:00
|
|
|
int UploadInfo();
|
|
|
|
int UploadErr();
|
|
|
|
int UploadData();
|
2022-01-04 17:32:19 +08:00
|
|
|
|
2022-01-10 17:46:44 +08:00
|
|
|
public:
|
2022-01-04 17:32:19 +08:00
|
|
|
RadConverter *m_pRadConverter = NULL;
|
|
|
|
ZZ_HttpTransfer *m_pTransfer = NULL;
|
|
|
|
private:
|
2022-01-10 17:46:44 +08:00
|
|
|
//ErrInfo m_struErrInfo;
|
2022-01-04 17:32:19 +08:00
|
|
|
EContext m_struEC;
|
|
|
|
MEContext m_struMEC;
|
|
|
|
RunTimeGrabberParams m_struGrabberRTParams;
|
|
|
|
vector<vector<DataFrame>> m_vecData;
|
|
|
|
vector<vector<CalFrame>> m_vecCalData;
|
|
|
|
vector<vector<CalDataFrame>> m_vecCalcedData;
|
2022-01-06 17:25:43 +08:00
|
|
|
|
|
|
|
QString m_qstrGrabDate;
|
2022-01-04 17:32:19 +08:00
|
|
|
public slots:
|
|
|
|
//int SlotPushOneDataFrame(vector<vector<DataFrame>> vecData);
|
|
|
|
int SlotPushOneDataFrame();
|
2022-01-10 17:46:44 +08:00
|
|
|
int SlotUpdateErrorInfo();
|
|
|
|
|
|
|
|
signals:
|
|
|
|
//void SignalInit_Self();
|
|
|
|
|
2022-01-04 17:32:19 +08:00
|
|
|
};
|