General Purpose Geodetic Library
NsSetup.cpp
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) 2010-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 #include <iostream>
23 #include <stdlib.h>
24 #include <sys/utsname.h>
25 
26 
27 #include <QtCore/QDir>
28 #include <QtCore/QFileInfo>
29 
30 
31 #include <SgLogger.h>
32 
33 
34 #include "NsSetup.h"
35 #include "nuSolve.h"
36 
37 
38 /*=======================================================================================================
39 *
40 * METHODS:
41 *
42 *======================================================================================================*/
44  catnuGetDbInfo_("catnu_find_db"),
45  catnuSetDbInfo_("catnu_update_cat"),
46  path2Home_(""),
47  path2CatNuInterfaceExec_ ("/mk5/bin"),
48  path2DbhFiles_ ("/500/databases"),
49  path2VgosDbFiles_ ("/500/vgosDb"),
50  path2VgosDaFiles_ ("/500/vgosDa"),
51  path2APrioriFiles_ ("/500/oper/solve_save_files"),
52  path2MasterFiles_ ("/500/oper/master"),
53  path2SpoolFileOutput_ ("/space/solve/spool_files"),
54 //path2SpoolFileOutput_ ("spool_files"),
55  path2NotUsedObsFileOutput_("/space/solve/work_files"),
56  path2ReportOutput_ ("Reports"),
57  path2NgsOutput_ ("NGS"),
58  path2PlotterOutput_ ("PlotterOutputs"),
59  path2IntermediateResults_ ("IntermediateResults"),
60  path2AuxLogs_ ("Logs"),
61  identities_(),
62  externalCommand_("")
63 {
66 
67  have2UpdateCatalog_ = false;
68  have2MaskSessionCode_ = false;
71  //
72  have2WarnCloseWindow_ = true;
73  isShortScreen_ = false;
74  mainWinWidth_ = 0;
75  mainWinHeight_ = 0;
76  mainWinPosX_ = 0;
77  mainWinPosY_ = 0;
78  seWinWidth_ = 0;
79  seWinHeight_ = 0;
81 //isBandPlotPerSrcView_ = false;
82  isBandPlotPerSrcView_ = true;
83 
85  //
86  lnfsFileName_ = "";
88  lnfsIsThroughCatalog_ = true;
91  execExternalCommand_ = false;
92 };
93 
94 
95 
96 //
98 {
99 };
100 
101 
102 
103 //
104 void NsSetup::setUpBinaryIdentities(const QString& argv0)
105 {
106  QFileInfo fi(argv0);
107  identities_.setExecBinaryName(fi.fileName());
108  identities_.setExecDir(fi.canonicalPath());
109  identities_.setCurrentDir(QDir::currentPath());
111 };
112 /*=====================================================================================================*/
SgVersion nuSolveVersion("nuSolve", 0, 7, 5, "Carroll Creek (rc)", SgMJD(2022, 2, 18, 17, 34))
int seWinHeight_
Definition: NsSetup.h:368
bool have2KeepSpoolFileReports_
Definition: NsSetup.h:356
bool have2WarnCloseWindow_
Definition: NsSetup.h:361
virtual ~NsSetup()
Definition: NsSetup.cpp:97
bool isBandPlotPerSrcView_
Definition: NsSetup.h:372
void setUpBinaryIdentities(const QString &)
Definition: NsSetup.cpp:104
bool have2UpdateCatalog_
Definition: NsSetup.h:354
bool have2LoadImmatureSession_
Definition: NsSetup.h:358
bool have2AutoloadAllBands_
Definition: NsSetup.h:370
SgIdentities identities_
Definition: NsSetup.h:375
SgPlot::OutputFormat plotterOutputFormat_
Definition: NsSetup.h:371
int mainWinPosX_
Definition: NsSetup.h:365
bool isShortScreen_
Definition: NsSetup.h:362
int mainWinHeight_
Definition: NsSetup.h:364
bool lnfsIsThroughCatalog_
Definition: NsSetup.h:380
AutoSaving autoSavingMode_
Definition: NsSetup.h:349
NsSetup()
Definition: NsSetup.cpp:43
bool have2SavePerSessionLog_
Definition: NsSetup.h:352
int seWinWidth_
Definition: NsSetup.h:367
bool have2SkipAutomaticProcessing_
Definition: NsSetup.h:386
SgVlbiSessionInfo::OriginType lnfsOriginType_
Definition: NsSetup.h:379
bool execExternalCommand_
Definition: NsSetup.h:382
@ AS_ON_EXIT
Definition: NsSetup.h:51
int mainWinPosY_
Definition: NsSetup.h:366
bool have2MaskSessionCode_
Definition: NsSetup.h:355
bool have2ForceAutomaticProcessing_
Definition: NsSetup.h:387
int mainWinWidth_
Definition: NsSetup.h:363
QString lnfsFileName_
Definition: NsSetup.h:378
void setCurrentDir(const QString &)
Definition: SgIdentities.h:391
void setExecBinaryName(const QString &)
Definition: SgIdentities.h:399
void setExecDir(const QString &)
Definition: SgIdentities.h:383
void setDriverVersion(const SgVersion &)
@ OT_UNKNOWN
unknown (=all others) source of import;