General Purpose Geodetic Library
SgIdentities.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_IDENTITIES
24 #define SG_IDENTITIES
25 
26 
27 #ifdef HAVE_CONFIG_H
28 # include <config.h>
29 #endif
30 
31 
32 #include <QtCore/QString>
33 
34 #include <SgVersion.h>
35 
36 
37 
38 /***===================================================================================================*/
45 {
46 public:
47  // Statics:
50  static const QString className();
51 
55  SgIdentities();
56 
60  SgIdentities(const SgIdentities&);
61 
65  inline ~SgIdentities();
66 
67 
68  //
69  // Interfaces:
70  //
74 
75  // gets:
78  inline const QString& getUserName() const;
79 
82  inline const QString& getUserEmailAddress() const;
83 
86  inline const QString& getUserDefaultInitials() const;
87 
90  inline const QString& getAcFullName() const;
91 
94  inline const QString& getAcAbbrevName() const;
95 
98  inline const QString& getAcAbbName() const;
99 
100  inline const QString& getExecDir() const;
101 
102  inline const QString& getCurrentDir() const;
103 
104  inline const QString& getExecBinaryName() const;
105 
106  inline const SgVersion& getDriverVersion() const;
107 
108  inline const QString& getMachineNodeName() const;
109 
110  inline const QString& getMachineMachineName() const;
111 
112  inline const QString& getMachineSysName() const;
113 
114  inline const QString& getMachineRelease() const;
115 
116 // inline const QString& getAltConfigName() const;
117 
118 
119 
120 
121  // sets:
124  inline void setUserName(const QString&);
125 
128  inline void setUserEmailAddress(const QString&);
129 
132  inline void setUserDefaultInitials(const QString&);
133 
136  inline void setAcFullName(const QString&);
137 
140  inline void setAcAbbrevName(const QString&);
141 
144  inline void setAcAbbName(const QString&);
145 
146  inline void setExecDir(const QString&);
147 
148  inline void setCurrentDir(const QString&);
149 
150  inline void setExecBinaryName(const QString&);
151 
152  void setDriverVersion(const SgVersion&);
153 
154  inline void setMachineNodeName(const QString&);
155 
156  inline void setMachineMachineName(const QString&);
157 
158  inline void setMachineSysName(const QString&);
159 
160  inline void setMachineRelease(const QString&);
161 
162 // inline void setAltConfigName(const QString&);
163 
164 
165  // functions:
166  void print2stdOut();
167 
168 
169 private:
170  // user identities:
171  QString userName_;
174  // analysis center identities:
175  QString acFullName_;
176  QString acAbbrevName_; // standard abbreviation
177  QString acAbbName_; // 3-chars abbreviation
178  // executables identities:
179  QString execDir_;
180  QString currentDir_;
183  // computer's identities:
188  // aux:
189 // QString altConfigName_;
190 };
191 /*=====================================================================================================*/
192 
193 
194 
195 
196 
197 
198 /*=====================================================================================================*/
199 /* */
200 /* SgIdentities inline members: */
201 /* */
202 /*=====================================================================================================*/
203 // A destructor:
205 {
206 };
207 
208 
209 
210 //
211 // INTERFACE:
212 //
213 //
214 //
215 inline const QString& SgIdentities::getUserName() const
216 {
217  return userName_;
218 };
219 
220 
221 
222 //
223 inline const QString& SgIdentities::getUserEmailAddress() const
224 {
225  return userEmailAddress_;
226 };
227 
228 
229 
230 //
231 inline const QString& SgIdentities::getUserDefaultInitials() const
232 {
233  return userDefaultInitials_;
234 };
235 
236 
237 
238 //
239 inline const QString& SgIdentities::getAcFullName() const
240 {
241  return acFullName_;
242 };
243 
244 
245 
246 //
247 inline const QString& SgIdentities::getAcAbbrevName() const
248 {
249  return acAbbrevName_;
250 };
251 
252 
253 
254 //
255 inline const QString& SgIdentities::getAcAbbName() const
256 {
257  return acAbbName_;
258 };
259 
260 
261 
262 //
263 inline const QString& SgIdentities::getExecDir() const
264 {
265  return execDir_;
266 };
267 
268 
269 
270 //
271 inline const QString& SgIdentities::getCurrentDir() const
272 {
273  return currentDir_;
274 };
275 
276 
277 
278 //
279 inline const QString& SgIdentities::getExecBinaryName() const
280 {
281  return execBinaryName_;
282 };
283 
284 
285 
286 //
288 {
289  return driverVersion_;
290 };
291 
292 
293 
294 //
295 inline const QString& SgIdentities::getMachineNodeName() const
296 {
297  return machineNodeName_;
298 };
299 
300 
301 
302 //
303 inline const QString& SgIdentities::getMachineMachineName() const
304 {
305  return machineMachineName_;
306 };
307 
308 
309 
310 //
311 inline const QString& SgIdentities::getMachineSysName() const
312 {
313  return machineSysName_;
314 };
315 
316 
317 
318 //
319 inline const QString& SgIdentities::getMachineRelease() const
320 {
321  return machineRelease_;
322 };
323 
324 
325 
326 //
327 //inline const QString& SgIdentities::getAltConfigName() const
328 //{
329 // return altConfigName_;
330 //};
331 
332 
333 
334 //
335 inline void SgIdentities::setUserName(const QString& str)
336 {
337  userName_ = str;
338 };
339 
340 
341 
342 //
343 inline void SgIdentities::setUserEmailAddress(const QString& str)
344 {
345  userEmailAddress_ = str;
346 };
347 
348 
349 
350 //
351 inline void SgIdentities::setUserDefaultInitials(const QString& str)
352 {
353  userDefaultInitials_ = str;
354 };
355 
356 
357 
358 //
359 inline void SgIdentities::setAcFullName(const QString& str)
360 {
361  acFullName_ = str;
362 };
363 
364 
365 
366 //
367 inline void SgIdentities::setAcAbbrevName(const QString& str)
368 {
369  acAbbrevName_ = str;
370 };
371 
372 
373 
374 //
375 inline void SgIdentities::setAcAbbName(const QString& str)
376 {
377  acAbbName_ = str;
378 };
379 
380 
381 
382 //
383 inline void SgIdentities::setExecDir(const QString& str)
384 {
385  execDir_ = str;
386 };
387 
388 
389 
390 //
391 inline void SgIdentities::setCurrentDir(const QString& str)
392 {
393  currentDir_ = str;
394 };
395 
396 
397 
398 //
399 inline void SgIdentities::setExecBinaryName(const QString& str)
400 {
401  execBinaryName_ = str;
402 };
403 
404 
405 
406 //
407 inline void SgIdentities::setMachineNodeName(const QString& str)
408 {
409  machineNodeName_ = str;
410 };
411 
412 
413 
414 //
415 inline void SgIdentities::setMachineMachineName(const QString& str)
416 {
417  machineMachineName_ = str;
418 };
419 
420 
421 
422 //
423 inline void SgIdentities::setMachineSysName(const QString& str)
424 {
425  machineSysName_ = str;
426 };
427 
428 
429 
430 //
431 inline void SgIdentities::setMachineRelease(const QString& str)
432 {
433  machineRelease_ = str;
434 };
435 
436 
437 
438 
439 //
440 //inline void SgIdentities::setAltConfigName(const QString& str)
441 //{
442 // altConfigName_ = str;
443 //};
444 
445 
446 
447 
448 //
449 // FRUNCTIONS:
450 //
451 //
452 //
453 
454 
455 
456 //
457 // FRIENDS:
458 //
459 //
460 //
461 /*=====================================================================================================*/
462 
463 
464 
465 
466 
467 
468 /*=====================================================================================================*/
469 //
470 // aux functions:
471 //
472 
473 
474 /*=====================================================================================================*/
475 #endif //SG_IDENTITIES
QString machineMachineName_
Definition: SgIdentities.h:185
SgIdentities & operator=(const SgIdentities &)
const QString & getExecBinaryName() const
Definition: SgIdentities.h:279
const QString & getAcAbbrevName() const
Definition: SgIdentities.h:247
void setMachineMachineName(const QString &)
Definition: SgIdentities.h:415
const QString & getAcAbbName() const
Definition: SgIdentities.h:255
QString userDefaultInitials_
Definition: SgIdentities.h:173
QString acAbbrevName_
Definition: SgIdentities.h:176
QString machineSysName_
Definition: SgIdentities.h:186
void setAcAbbrevName(const QString &)
Definition: SgIdentities.h:367
void setAcFullName(const QString &)
Definition: SgIdentities.h:359
const QString & getUserEmailAddress() const
Definition: SgIdentities.h:223
void setCurrentDir(const QString &)
Definition: SgIdentities.h:391
void setAcAbbName(const QString &)
Definition: SgIdentities.h:375
QString machineRelease_
Definition: SgIdentities.h:187
const QString & getMachineMachineName() const
Definition: SgIdentities.h:303
QString userEmailAddress_
Definition: SgIdentities.h:172
const QString & getMachineRelease() const
Definition: SgIdentities.h:319
void setMachineNodeName(const QString &)
Definition: SgIdentities.h:407
SgVersion driverVersion_
Definition: SgIdentities.h:182
const QString & getMachineNodeName() const
Definition: SgIdentities.h:295
const QString & getUserDefaultInitials() const
Definition: SgIdentities.h:231
const QString & getAcFullName() const
Definition: SgIdentities.h:239
QString execBinaryName_
Definition: SgIdentities.h:181
void setMachineRelease(const QString &)
Definition: SgIdentities.h:431
QString execDir_
Definition: SgIdentities.h:179
QString machineNodeName_
Definition: SgIdentities.h:184
void print2stdOut()
const SgVersion & getDriverVersion() const
Definition: SgIdentities.h:287
static const QString className()
void setUserDefaultInitials(const QString &)
Definition: SgIdentities.h:351
const QString & getCurrentDir() const
Definition: SgIdentities.h:271
void setUserEmailAddress(const QString &)
Definition: SgIdentities.h:343
QString acFullName_
Definition: SgIdentities.h:175
void setExecBinaryName(const QString &)
Definition: SgIdentities.h:399
void setMachineSysName(const QString &)
Definition: SgIdentities.h:423
QString acAbbName_
Definition: SgIdentities.h:177
QString userName_
Definition: SgIdentities.h:171
QString currentDir_
Definition: SgIdentities.h:180
void setUserName(const QString &)
Definition: SgIdentities.h:335
const QString & getExecDir() const
Definition: SgIdentities.h:263
const QString & getUserName() const
Definition: SgIdentities.h:215
const QString & getMachineSysName() const
Definition: SgIdentities.h:311
void setExecDir(const QString &)
Definition: SgIdentities.h:383
void setDriverVersion(const SgVersion &)