-
Notifications
You must be signed in to change notification settings - Fork 52
/
QBatchProcess.h
94 lines (87 loc) · 3.69 KB
/
QBatchProcess.h
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
/*************************************************************************
**
** MG-APPS----Multi-GNSS-Automatic Precise Positioning Software
** Copyright (C) 2016-2019 XiaoGongWei
** This file is part of MG-APPS.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 3 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL3 included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 3 requirements
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
**
** MPL License Usage
** This Source Code Form is subject to the terms of the Mozilla Public
** License, v. 2.0. If a copy of the MPL was not distributed with this
** file, You can obtain one at http://mozilla.org/MPL/2.0/.
**
** GPLv3.0 License Usage
** This program is free software: you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation, either version 3 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program. If not, see http://www.gnu.org/licenses/.
**
**************************************************************************
** Author: XiaoGongWei
** Website/Contact: http://github.com/xiaogongwei
** Date: 26.04.2019
****************************************************************************/
#ifndef QBATCHPROCESS_H
#define QBATCHPROCESS_H
#include "QPPPModel.h"
#include "QPPPBackSmooth.h"
/*
*illustrate:
* ObsFiles_Path store multiply obsevation data. We will make " ObsFiles_Path " dir in ObsFiles_Path.
*
* Example:
* QString ObsFiles_Path = "C:\\OFiles\\";
* QBatchProcess process_stations;
* process_stations.Run(ObsFiles_Path);
*
*/
class QBatchProcess
{
public:
QBatchProcess(QString files_path, QTextEdit *pQTextEdit = NULL, QString Method = "Kalman", QString Satsystem = "G", QString TropDelay = "Sass",
double CutAngle = 10, bool isKinematic = false, QString Smooth_Str = "NoSmooth", bool isBackBatch = false,
QString products = "igs", QString pppmodel_t = "Ion_free");
~QBatchProcess();
bool Run(bool isDisplayEveryEpoch = false);//isDisplayEveryEpoch represent is disply every epoch information?(ENU or XYZ)
void getStoreAllData(QVector<PlotGUIData> &all_SationData);
QStringList getStationNames();
bool isRuned(){ return m_isRuned; }
private:
bool isDirExist(QString fullPath);
bool distribute(QString ofile_path, QString destin_floder);
bool isFileExist(QString fullFileName);
void autoScrollTextEdit(QTextEdit *textEdit,QString &add_text);
private:
QString m_mkdir_name;
QTextEdit *mp_QTextEdit;
QString M_ObsFiles_Path;// M_ObsFiles_Path is a floder which store multiply .O files
QStringList m_AllStations;// all Stations names
QVector< PlotGUIData > m_AllStationsData;// use pointer store for External data
bool m_isRuned;
// configure flag
QString m_Method;
QString m_TropDelay;
QString m_Satsystem;
QString m_Smooth_Str;
QString m_Product;// value is "igs" or "cnt"
QString m_PPPModel_Str;// // value is "Ion_free" or "Uncombined"
bool m_isKinematic;
bool m_isBackBatch;
double m_CutAngle;
};
#endif // QBATCHPROCESS_H