General Purpose Geodetic Library
NsScrPrx4Setup.h
Go to the documentation of this file.
1 /*
2  *
3  * This file is a part of nuSolve. nuSolve is a part of CALC/SOLVE system
4  * and is designed to perform data analyis of a geodetic VLBI session.
5  * Copyright (C) 2017-2020 Sergei Bolotin.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef NS_SCR_PRX_4_SETUP_H
23 #define NS_SCR_PRX_4_SETUP_H
24 
25 
26 #ifdef HAVE_CONFIG_H
27 # include <config.h>
28 #endif
29 
30 
31 
32 #include <QtCore/QtGlobal>
33 #include <QtCore/QDir>
34 #include <QtCore/QObject>
35 
36 #if 0 < HAVE_SCRIPTS
37 # include <QtScript/QScriptEngine>
38 # include <QtScript/QScriptValue>
39 #endif
40 
41 #include "NsSetup.h"
42 
43 
44 class QString;
45 
46 /***===================================================================================================*/
52 class NsScrPrx4Setup : public QObject
53 {
54  Q_OBJECT
55 
56  Q_PROPERTY(QString path2Home
57  WRITE setPath2Home READ getPath2Home)
58  Q_PROPERTY(QString path2CatNuInterfaceExec
60  Q_PROPERTY(QString path2DbhFiles
62  Q_PROPERTY(QString path2VgosDbFiles
64  Q_PROPERTY(QString path2VgosDaFiles
66  Q_PROPERTY(QString path2APrioriFiles
68  Q_PROPERTY(QString path2MasterFiles
70  Q_PROPERTY(QString path2SpoolFileOutput
72  Q_PROPERTY(QString path2NotUsedObsFileOutput
74  Q_PROPERTY(QString path2ReportOutput
76  Q_PROPERTY(QString path2NgsOutput
78  Q_PROPERTY(QString path2PlotterOutput
80  Q_PROPERTY(QString path2AuxLogs
82  Q_PROPERTY(QString pwd
83  READ getPwd)
84  Q_PROPERTY(bool have2SavePerSessionLog
86  Q_PROPERTY(bool have2UpdateCatalog
88  Q_PROPERTY(bool have2MaskSessionCode
90  Q_PROPERTY(bool have2KeepSpoolFileReports
92  Q_PROPERTY(bool have2LoadImmatureSession
94  Q_PROPERTY(bool have2AutoloadAllBands
96 
97 
98 public:
99  inline NsScrPrx4Setup(NsSetup& setup, QObject *parent=0) : QObject(parent) {setup_=&setup;};
100  inline ~NsScrPrx4Setup() {setup_=NULL;};
101 
102 
103 public slots:
104  inline QString getPath2Home() const {return setup_->getPath2Home();};
105  inline QString getPath2CatNuInterfaceExec() const {return setup_->getPath2CatNuInterfaceExec();};
106  inline QString getPath2DbhFiles() const {return setup_->getPath2DbhFiles();};
107  inline QString getPath2VgosDbFiles() const {return setup_->getPath2VgosDbFiles();};
108  inline QString getPath2VgosDaFiles() const {return setup_->getPath2VgosDaFiles();};
109  inline QString getPath2APrioriFiles() const {return setup_->getPath2APrioriFiles();};
110  inline QString getPath2MasterFiles() const {return setup_->getPath2MasterFiles();};
111  inline QString getPath2SpoolFileOutput() const {return setup_->getPath2SpoolFileOutput();};
113  inline QString getPath2ReportOutput() const {return setup_->getPath2ReportOutput();};
114  inline QString getPath2NgsOutput() const {return setup_->getPath2NgsOutput();};
115  inline QString getPath2PlotterOutput() const {return setup_->getPath2PlotterOutput();};
116  inline QString getPath2AuxLogs() const {return setup_->getPath2AuxLogs();};
117  inline QString getPwd() const {return QDir::currentPath();};
118  //
120  inline bool getHave2UpdateCatalog() const {return setup_->getHave2UpdateCatalog();};
121  inline bool getHave2MaskSessionCode() const {return setup_->getHave2MaskSessionCode();};
124  inline bool getHave2AutoloadAllBands() const {return setup_->getHave2AutoloadAllBands();};
125 
126  //
127  inline void setPath2Home(QString path2) {setup_->setPath2Home(path2);};
128  inline void setPath2CatNuInterfaceExec(QString path2) {setup_->setPath2CatNuInterfaceExec(path2);};
129  inline void setPath2DbhFiles(QString path2) {setup_->setPath2DbhFiles(path2);};
130  inline void setPath2VgosDbFiles(QString path2) {setup_->setPath2VgosDbFiles(path2);};
131  inline void setPath2VgosDaFiles(QString path2) {setup_->setPath2VgosDaFiles(path2);};
132  inline void setPath2APrioriFiles(QString path2) {setup_->setPath2APrioriFiles(path2);};
133  inline void setPath2MasterFiles(QString path2) {setup_->setPath2MasterFiles(path2);};
134  inline void setPath2SpoolFileOutput(QString path2) {setup_->setPath2SpoolFileOutput(path2);};
135  inline void setPath2NotUsedObsFileOutput(QString path2) {setup_->setPath2NotUsedObsFileOutput(path2);};
136  inline void setPath2ReportOutput(QString path2) {setup_->setPath2ReportOutput(path2);};
137  inline void setPath2NgsOutput(QString path2) {setup_->setPath2NgsOutput(path2);};
138  inline void setPath2PlotterOutput(QString path2) {setup_->setPath2PlotterOutput(path2);};
139  inline void setPath2AuxLogs(QString path2) {setup_->setPath2AuxLogs(path2);};
140  //
142  inline void setHave2UpdateCatalog(bool have) {setup_->setHave2UpdateCatalog(have);};
143  inline void setHave2MaskSessionCode(bool have) {setup_->setHave2MaskSessionCode(have);};
146  inline void setHave2AutoloadAllBands(bool have) {setup_->setHave2AutoloadAllBands(have);};
147 
148 private:
150 };
151 /*=====================================================================================================*/
152 
153 
154 
155 
156 
157 
158 
159 
160 /*=====================================================================================================*/
161 //
162 // aux functions:
163 //
164 
165 
166 
167 /*=====================================================================================================*/
168 #endif // NS_SCR_PRX_4_SETUP_H
bool have2MaskSessionCode
QString path2AuxLogs
QString getPath2VgosDaFiles() const
bool have2KeepSpoolFileReports
QString getPath2Home() const
QString path2NgsOutput
void setHave2SavePerSessionLog(bool have)
QString getPath2SpoolFileOutput() const
void setPath2VgosDbFiles(QString path2)
QString path2CatNuInterfaceExec
QString getPath2NgsOutput() const
QString getPath2PlotterOutput() const
void setHave2AutoloadAllBands(bool have)
void setPath2SpoolFileOutput(QString path2)
void setPath2Home(QString path2)
bool getHave2MaskSessionCode() const
QString path2APrioriFiles
QString path2PlotterOutput
NsScrPrx4Setup(NsSetup &setup, QObject *parent=0)
QString getPath2ReportOutput() const
void setPath2NotUsedObsFileOutput(QString path2)
bool getHave2UpdateCatalog() const
QString getPath2AuxLogs() const
bool getHave2KeepSpoolFileReports() const
void setPath2CatNuInterfaceExec(QString path2)
QString path2NotUsedObsFileOutput
QString path2VgosDbFiles
bool have2SavePerSessionLog
bool getHave2AutoloadAllBands() const
bool getHave2LoadImmatureSession() const
QString getPath2CatNuInterfaceExec() const
void setHave2KeepSpoolFileReports(bool have)
bool getHave2SavePerSessionLog() const
bool have2LoadImmatureSession
QString path2DbhFiles
QString path2SpoolFileOutput
void setHave2LoadImmatureSession(bool have)
QString path2VgosDaFiles
void setPath2VgosDaFiles(QString path2)
QString getPath2APrioriFiles() const
QString getPath2NotUsedObsFileOutput() const
void setPath2ReportOutput(QString path2)
QString getPath2VgosDbFiles() const
void setPath2NgsOutput(QString path2)
QString getPath2MasterFiles() const
void setHave2UpdateCatalog(bool have)
void setPath2DbhFiles(QString path2)
void setHave2MaskSessionCode(bool have)
void setPath2APrioriFiles(QString path2)
NsSetup * setup_
void setPath2AuxLogs(QString path2)
void setPath2MasterFiles(QString path2)
QString getPwd() const
bool have2AutoloadAllBands
void setPath2PlotterOutput(QString path2)
QString path2MasterFiles
QString getPath2DbhFiles() const
QString path2ReportOutput
void setPath2APrioriFiles(const QString &)
Definition: NsSetup.h:736
const QString & getPath2AuxLogs() const
Definition: NsSetup.h:510
void setPath2NgsOutput(const QString &)
Definition: NsSetup.h:776
void setPath2DbhFiles(const QString &)
Definition: NsSetup.h:720
void setHave2LoadImmatureSession(bool)
Definition: NsSetup.h:848
const QString & getPath2ReportOutput() const
Definition: NsSetup.h:470
const QString & getPath2CatNuInterfaceExec() const
Definition: NsSetup.h:414
void setPath2SpoolFileOutput(const QString &)
Definition: NsSetup.h:752
const QString & getPath2MasterFiles() const
Definition: NsSetup.h:446
void setPath2VgosDaFiles(const QString &path)
Definition: NsSetup.h:206
bool getHave2SavePerSessionLog() const
Definition: NsSetup.h:518
const QString & getPath2SpoolFileOutput() const
Definition: NsSetup.h:454
bool getHave2AutoloadAllBands() const
Definition: NsSetup.h:638
void setHave2SavePerSessionLog(bool)
Definition: NsSetup.h:816
bool getHave2MaskSessionCode() const
Definition: NsSetup.h:534
const QString & getPath2Home() const
Definition: NsSetup.h:406
void setPath2CatNuInterfaceExec(const QString &)
Definition: NsSetup.h:712
void setPath2Home(const QString &)
Definition: NsSetup.h:704
void setPath2ReportOutput(const QString &)
Definition: NsSetup.h:768
bool getHave2KeepSpoolFileReports() const
Definition: NsSetup.h:542
bool getHave2LoadImmatureSession() const
Definition: NsSetup.h:550
void setPath2NotUsedObsFileOutput(const QString &)
Definition: NsSetup.h:760
const QString & getPath2APrioriFiles() const
Definition: NsSetup.h:438
const QString & getPath2VgosDaFiles() const
Definition: NsSetup.h:87
bool getHave2UpdateCatalog() const
Definition: NsSetup.h:526
const QString & getPath2DbhFiles() const
Definition: NsSetup.h:422
void setPath2PlotterOutput(const QString &)
Definition: NsSetup.h:784
const QString & getPath2PlotterOutput() const
Definition: NsSetup.h:486
void setHave2KeepSpoolFileReports(bool)
Definition: NsSetup.h:840
void setPath2VgosDbFiles(const QString &)
Definition: NsSetup.h:728
const QString & getPath2VgosDbFiles() const
Definition: NsSetup.h:430
void setPath2MasterFiles(const QString &)
Definition: NsSetup.h:744
void setHave2AutoloadAllBands(bool)
Definition: NsSetup.h:928
const QString & getPath2NgsOutput() const
Definition: NsSetup.h:478
void setHave2MaskSessionCode(bool)
Definition: NsSetup.h:832
void setHave2UpdateCatalog(bool)
Definition: NsSetup.h:824
void setPath2AuxLogs(const QString &)
Definition: NsSetup.h:808
const QString & getPath2NotUsedObsFileOutput() const
Definition: NsSetup.h:462
NsSetup setup
Definition: nuSolve.cpp:61