Kstars

site.h
1 /*
2  SPDX-FileCopyrightText: 2009 Prakash Mohan <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 #pragma once
7 
8 #include "oal/oal.h"
9 
10 #include <QString>
11 
12 #include "geolocation.h"
13 
14 /**
15  * @class OAL::Site
16  *
17  * Information on site of observation.
18  */
19 class OAL::Site
20 {
21  public:
22  Site(const QString &id, const QString &name, double lat, const QString &latUnit, double lon, const QString &lonUnit)
23  {
24  setSite(id, name, lat, latUnit, lon, lonUnit);
25  }
26  Site(GeoLocation *geo, const QString &id)
27  {
28  setSite(geo, id);
29  }
30  QString id() const
31  {
32  return m_Id;
33  }
34  QString name() const
35  {
36  return m_Name;
37  }
38  double latitude() const
39  {
40  return m_Lat;
41  }
42  QString latUnit() const
43  {
44  return m_LatUnit;
45  }
46  double longitude() const
47  {
48  return m_Lon;
49  }
50  QString lonUnit() const
51  {
52  return m_LonUnit;
53  }
54  void setSite(const QString &_id, const QString &_name, double _lat, const QString &_latUnit, double _lon,
55  const QString &_lonUnit);
56  void setSite(GeoLocation *geo, const QString &id);
57 
58  private:
59  QString m_Name, m_LatUnit, m_LonUnit, m_Id;
60  double m_Lat, m_Lon;
61 };
Definition: site.h:19
Relevant data about an observing location on Earth.
Definition: geolocation.h:27
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Aug 8 2022 04:13:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.