General Purpose Geodetic Library
SgEccDat.h
Go to the documentation of this file.
1 /*
2  *
3  * This file is a part of Space Geodetic Library. The library is used by
4  * nuSolve, a part of CALC/SOLVE system, and designed to make analysis of
5  * geodetic VLBI observations.
6  * Copyright (C) 2010-2020 Sergei Bolotin.
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
23 #ifndef SG_ECC_DAT_H
24 #define SG_ECC_DAT_H
25 
26 
27 #ifdef HAVE_CONFIG_H
28 # include <config.h>
29 #endif
30 
31 
32 #include <QtCore/QMap>
33 #include <QtCore/QString>
34 
35 
36 /***===================================================================================================*/
42 class SgEccRec;
43 class SgEccSite;
44 class SgMJD;
45 class SgEccDat
46 {
47 public:
48  //
49  // constructors/destructors:
50  //
54  inline SgEccDat(QString="./");
55 
59  ~SgEccDat();
60 
61  //
62  // Interfaces:
63  //
64  inline const QString& getPath2File() const;
65  inline const QString& getFileName() const;
66 
67  inline void setPath2File(const QString&);
68  inline void setFileName(const QString&);
69 
70  //
71  // Functions:
72  //
75  static const QString className();
76 
77  void importEccFile();
78 
79  SgEccRec* lookupRecord(const QString&, const SgMJD&);
80 
81  //
82  // Friends:
83  //
84 
85  //
86  // I/O:
87  //
88  // ...
89 
90 private:
91  QString path2File_;
92  QString fileName_;
93  QMap<QString, SgEccSite*> siteByName_;
94 };
95 /*=====================================================================================================*/
96 
97 
98 
99 
100 
101 /*=====================================================================================================*/
102 /* */
103 /* SgEccDat inline members: */
104 /* */
105 /*=====================================================================================================*/
106 //
107 //
108 // CONSTRUCTORS:
109 //
110 // An empty constructor:
111 inline SgEccDat::SgEccDat(QString path2) :
112  path2File_(path2),
113  fileName_("ECCDAT.ecc")
114 {
115 };
116 
117 
118 
119 
120 
121 
122 //
123 // INTERFACES:
124 //
125 //
126 inline const QString& SgEccDat::getPath2File() const
127 {
128  return path2File_;
129 };
130 
131 
132 
133 //
134 inline const QString& SgEccDat::getFileName() const
135 {
136  return fileName_;
137 };
138 
139 
140 
141 //
142 inline void SgEccDat::setPath2File(const QString& s)
143 {
144  path2File_ = s;
145 };
146 
147 
148 
149 //
150 inline void SgEccDat::setFileName(const QString& s)
151 {
152  fileName_ = s;
153 };
154 
155 
156 
157 
158 //
159 // FUNCTIONS:
160 //
161 //
162 //
163 
164 // FRIENDS:
165 //
166 //
167 //
168 /*=====================================================================================================*/
169 
170 
171 
172 
173 
174 
175 
176 
177 /*=====================================================================================================*/
178 //
179 // aux functions:
180 //
181 
182 
183 /*=====================================================================================================*/
184 #endif //SG_ECC_DAT_H
~SgEccDat()
Definition: SgEccDat.cpp:50
SgEccRec * lookupRecord(const QString &, const SgMJD &)
Definition: SgEccDat.cpp:119
static const QString className()
Definition: SgEccDat.cpp:42
QString path2File_
Definition: SgEccDat.h:91
const QString & getPath2File() const
Definition: SgEccDat.h:126
const QString & getFileName() const
Definition: SgEccDat.h:134
void setPath2File(const QString &)
Definition: SgEccDat.h:142
void setFileName(const QString &)
Definition: SgEccDat.h:150
SgEccDat(QString="./")
Definition: SgEccDat.h:111
QMap< QString, SgEccSite * > siteByName_
Definition: SgEccDat.h:93
QString fileName_
Definition: SgEccDat.h:92
void importEccFile()
Definition: SgEccDat.cpp:61
Definition: SgMJD.h:59