General Purpose Geodetic Library
SgSourceKey.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_SOURCE_KEY_H
24 #define SG_SOURCE_KEY_H
25 
26 
27 #ifdef HAVE_CONFIG_H
28 # include <config.h>
29 #endif
30 
31 
32 #include <math.h>
33 #include <QtCore/QString>
34 
35 
36 
37 
38 
39 
40 /***==============================================================================================*/
47 {
48 public:
49  // Statics:
52  static const QString className();
53 
54  //
55  // constructors/destructors:
56  //
60  inline SgSourceKey();
61 
66  inline SgSourceKey(const QString& key);
67 
71  inline ~SgSourceKey();
72 
73 
74 
75  //
76  // Interfaces:
77  //
80  inline SgSourceKey& operator=(const SgSourceKey& srcKey);
81 
84  inline const QString& getKey() const;
85 
89  void setKey(const QString& srcKey);
90 
91  //
92  // Functions:
93  //
94 
95  //
96  // Friends:
97  //
98 
99  //
100  // I/O:
101  //
102  // ...
103 
104 private:
105  QString key_;
106 
107 };
108 /*================================================================================================*/
109 
110 
111 
112 
113 
114 /*================================================================================================*/
115 /* */
116 /* SgSourceKey inline members: */
117 /* */
118 /*================================================================================================*/
119 //
120 //
121 // CONSTRUCTORS:
122 //
123 // An empty constructor:
124 inline SgSourceKey::SgSourceKey() : key_("1234+678")
125 {
126 };
127 
128 
129 
130 // A regular constructor:
131 inline SgSourceKey::SgSourceKey(const QString& key)
132 {
133  key_ = key;
134 };
135 
136 
137 
138 // A destructor:
140 {
141  // nothing to do
142 };
143 
144 
145 
146 //
147 // INTERFACES:
148 //
149 // returns number of MJDays
150 inline const QString& SgSourceKey::getKey() const
151 {
152  return key_;
153 };
154 
155 
156 
157 //
158 inline void SgSourceKey::setKey(const QString& key)
159 {
160  key_ = key;
161 };
162 
163 
164 
165 //
166 // FUNCTIONS:
167 //
168 //
169 //
170 
171 
172 
173 //
174 // FRIENDS:
175 //
176 //
177 //
178 
179 
180 /*================================================================================================*/
181 
182 
183 
184 
185 
186 /*================================================================================================*/
187 //
188 // aux functions:
189 //
190 
191 
192 /*================================================================================================*/
193 #endif //SG_SOURCE_KEY_H
QString key_
Definition: SgSourceKey.h:105
const QString & getKey() const
Definition: SgSourceKey.h:150
SgSourceKey & operator=(const SgSourceKey &srcKey)
static const QString className()
Definition: SgSourceKey.cpp:39
void setKey(const QString &srcKey)
Definition: SgSourceKey.h:158