Kstars

observation.h
1/*
2 SPDX-FileCopyrightText: 2009 Prakash Mohan <prakash.mohan@kdemail.net>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6#pragma once
7
8#include "oal/oal.h"
9#include "kstarsdatetime.h"
10#include "skyobjects/skyobject.h"
11#include "oal/observer.h"
12#include "oal/site.h"
13#include "oal/session.h"
14#include "oal/scope.h"
15#include "oal/eyepiece.h"
16#include "oal/filter.h"
17#include "oal/lens.h"
18
19#include <QString>
20
21using namespace OAL;
22
23/**
24 * @class OAL::Observation
25 *
26 * Information on observation session details.
27 */
29{
30 public:
31 Observation(QString id, QString observer, QString site, QString session, QString target, KStarsDateTime begin,
32 double faintestStar, double seeing, QString scope, QString eyepiece, QString lens, QString filter,
33 QString result, QString lang)
34 {
35 setObservation(id, observer, site, session, target, begin, faintestStar, seeing, scope, eyepiece, lens, filter,
36 result, lang);
37 }
38 Observation(QString id, Observer *observer, Session *session, SkyObject *target, KStarsDateTime begin,
39 double faintestStar, double seeing, Scope *scope, Eyepiece *eyepiece, Lens *lens, Filter *filter,
40 QString result, QString lang);
41 QString id() const
42 {
43 return m_Name;
44 }
45 QString target() const
46 {
47 return m_Target;
48 }
49 QString observer() const
50 {
51 return m_Observer;
52 }
53 QString site() const
54 {
55 return m_Site;
56 }
57 QString session() const
58 {
59 return m_Session;
60 }
61 QString scope() const
62 {
63 return m_Scope;
64 }
65 QString eyepiece() const
66 {
67 return m_Eyepiece;
68 }
69 QString lens() const
70 {
71 return m_Lens;
72 }
73 QString filter() const
74 {
75 return m_Filter;
76 }
77 QString lang() const
78 {
79 return m_Lang;
80 }
81 QString result() const
82 {
83 return m_Result;
84 }
85 double seeing() const
86 {
87 return m_Seeing;
88 }
89 double faintestStar() const
90 {
91 return m_FaintestStar;
92 }
93 KStarsDateTime begin() const
94 {
95 return m_Begin;
96 }
97 void setObservation(QString _id, QString _observer, QString _site, QString _session, QString _target,
98 KStarsDateTime _begin, double _faintestStar, double _seeing, QString _scope, QString _eyepiece,
99 QString _lens, QString _filter, QString _result, QString _lang = "en");
100
101 private:
102 QString m_Name;
103 QString m_Target;
104 QString m_Observer;
105 QString m_Site;
106 QString m_Session;
107 QString m_Scope;
108 QString m_Result;
109 QString m_Eyepiece;
110 QString m_Lens;
111 QString m_Filter;
112 QString m_Lang;
113 double m_Seeing;
114 double m_FaintestStar;
115 KStarsDateTime m_Begin;
116};
Extension of QDateTime for KStars KStarsDateTime can represent the date/time as a Julian Day,...
Information of user filters.
Definition filter.h:48
Information of lens utilized in the observation.
Definition lens.h:18
Information on observation session details.
Definition observation.h:29
FIXME: why not just use a QHash?
Definition observer.h:20
Information on telescope used in observation.
Definition scope.h:18
Information on session details.
Definition session.h:19
Provides all necessary information about an object in the sky: its coordinates, name(s),...
Definition skyobject.h:42
Open Astronomy Log (OAL) is a free and open XML schema definition for all kinds of astronomical obser...
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.