General Purpose Geodetic Library
NsScrPrx4SessionHandler.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_SESSION_HANDLER_H
23 #define NS_SCR_PRX_4_SESSION_HANDLER_H
24 
25 
26 #ifdef HAVE_CONFIG_H
27 # include <config.h>
28 #endif
29 
30 
31 #include <QtCore/QObject>
32 #include <QtCore/QString>
33 #include <QtCore/QtGlobal>
34 
35 
36 
37 #include "NsSessionHandler.h"
38 #include "nuSolve.h"
39 
40 
41 
42 
43 
44 
45 class NsScrPrx4Session;
46 /***===================================================================================================*/
53 {
54  Q_OBJECT
55  Q_PROPERTY(QString fileName WRITE setFileName READ getFileName)
56  Q_PROPERTY(QString fileNameAux WRITE setFileNameAux READ getFileNameAux)
57  Q_PROPERTY(QString inputType WRITE setInputType READ getInputType)
58  Q_PROPERTY(QString guessedSessionName READ getGuessedSessionName)
59 
60 
61 public:
62  //
63  // constructors/destructors:
64  //
68 
72  virtual ~NsScrPrx4SessionHandler();
73 
74 
75  //
76  // Interfaces:
77  //
78 public slots:
79  inline const QString& getFileName() const {return handler_->getFileName();}
80  inline const QString& getFileNameAux() const {return handler_->getFileNameAux();};
81  const QString& getInputType() const;
82  inline const QString& getGuessedSessionName() const {return guessedSessionName_;};
83 
84  inline void setFileName(const QString& fname) {handler_->setFileName(fname); guessSessionName();};
85  inline void setFileNameAux(const QString& fnameAux) {handler_->setFileNameAux(fnameAux);};
86  void setInputType(const QString&);
87 
88  bool importSession();
89  inline bool performPia() {return handler_->performPia();};
90  bool saveResults();
92  inline bool saveDataAsVgosDa(const QString& output) {return handler_->exportDataIntoVgosDa(output);};
93  inline bool saveDataAsVgosDb(const QString& output) {return handler_->exportDataIntoVgosDb(output);};
94  inline void generateReport(bool isExtended=false) {handler_->generateReport(isExtended);};
98  inline void addUserComment2Report(const QString& comment) {handler_->addUserComment(comment);};
99  //
100 
101 public:
102  //
103  // Functions:
104  //
105  inline QString className() const {return "NsScrPrx4SessionHandler";};
106 
107  inline void setSessionProxy(NsScrPrx4Session *sProxy) {sessionProxy_=sProxy;};
108 
109  //
110  // Friends:
111  //
112 
113 
114  //
115  // I/O:
116  //
117  //
118 
119 protected:
123 
124  void guessSessionName();
125 };
126 /*=====================================================================================================*/
127 
128 
129 
130 /*=====================================================================================================*/
131 #endif // NS_SCR_PRX_4_SESSION_HANDLER_H
void setFileName(const QString &fname)
void setInputType(const QString &)
void setSessionProxy(NsScrPrx4Session *sProxy)
void generateReport(bool isExtended=false)
NsScrPrx4SessionHandler(NsSessionHandler &)
bool saveDataAsVgosDb(const QString &output)
const QString & getFileNameAux() const
const QString & getGuessedSessionName() const
void setFileNameAux(const QString &fnameAux)
void addUserComment2Report(const QString &comment)
const QString & getInputType() const
bool saveDataAsVgosDa(const QString &output)
const QString & getFileName() const
const QString & getFileName() const
void generateReport(bool isExtended=false)
bool exportDataIntoVgosDb(QString output=QString(""))
void addUserComment(const QString &comment)
const QString & getFileNameAux() const
void setFileNameAux(const QString &f)
bool exportDataIntoVgosDa(QString output=QString(""))
void setFileName(const QString &f)