HLCC Documentation 2.2.0
Loading...
Searching...
No Matches
pointingCorrection.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2020-2025 European Southern Observatory (ESO)
2//
3// SPDX-License-Identifier: LGPL-3.0-only
4
14// !!! Copied from lsv pfs because it is not available in pfs interface - to discuss
15
16#ifndef HLCC_PFSSIMHLCC_POINTING_CORRECTION_TYPE_HPP
17#define HLCC_PFSSIMHLCC_POINTING_CORRECTION_TYPE_HPP
18
19#include <taiclock/taiClock.hpp>
20
21namespace pfs::gpctr
22{
30 public:
40 const taiclock::TaiClock::time_point timestamp,
41 const double correction_ra,
42 const double correction_dec,
43 const bool is_valid):
44 m_timestamp{timestamp}, m_correction_ra{correction_ra},
45 m_correction_dec{correction_dec}, m_is_valid{is_valid} {}
46
49 this->m_timestamp = corr.m_timestamp;
50 this->m_correction_ra= corr.m_correction_ra;
51 this->m_correction_dec = corr.m_correction_dec;
52 this->m_is_valid = corr.m_is_valid;
53 return *this;
54 }
55
60 m_timestamp{taiclock::TaiClock::now()}, m_correction_ra{0.0},
61 m_correction_dec{0.0}, m_is_valid{false}
62 { }
63
67 m_timestamp{corr.m_timestamp}, m_correction_ra{corr.m_correction_ra},
68 m_correction_dec{corr.m_correction_dec}, m_is_valid{corr.m_is_valid}
69 {}
70
73 taiclock::TaiClock::time_point GetTimestamp() const { return m_timestamp; }
74
77 double GetRa() const { return m_correction_ra; }
78
81 double GetDec() const { return m_correction_dec; }
82
85 bool IsValid() const { return m_is_valid; }
86
87 private:
88
90 taiclock::TaiClock::time_point m_timestamp; // NOLINT: immutable does not need a get
91
93 double m_correction_ra; // NOLINT: immutable does not need a get
94
96 double m_correction_dec; // NOLINT: immutable does not need a get
97
99 bool m_is_valid; // NOLINT: immutable does not need a get
100 };
101}
102
103#endif // HLCC_PFSSIMHLCC_POINTING_CORRECTION_TYPE_HPP
Definition pointingCorrection.hpp:29
double GetDec() const
Getter.
Definition pointingCorrection.hpp:81
PointingCorrection()
Definition pointingCorrection.hpp:59
PointingCorrection(const taiclock::TaiClock::time_point timestamp, const double correction_ra, const double correction_dec, const bool is_valid)
Definition pointingCorrection.hpp:39
PointingCorrection(const PointingCorrection &corr)
Copy constructor.
Definition pointingCorrection.hpp:66
taiclock::TaiClock::time_point GetTimestamp() const
getter
Definition pointingCorrection.hpp:73
bool IsValid() const
Getter.
Definition pointingCorrection.hpp:85
double GetRa() const
Getter.
Definition pointingCorrection.hpp:77
PointingCorrection & operator=(const PointingCorrection &corr)
Assignement operator.
Definition pointingCorrection.hpp:48
Definition pointingCorrection.hpp:22