hlcc 2.0.0-beta2+pre1
Loading...
Searching...
No Matches
pointingCorrection.hpp
Go to the documentation of this file.
1
10// !!! Copied from lsv pfs because it is not available in pfs interface - to discuss
11
12#ifndef HLCC_PFSSIMHLCC_POINTING_CORRECTION_TYPE_HPP
13#define HLCC_PFSSIMHLCC_POINTING_CORRECTION_TYPE_HPP
14
15#include <ecos/taiClock.hpp>
16
17namespace pfs::gpctr
18{
26 public:
36 const ecos::TaiClock::time_point timestamp,
37 const double correction_ra,
38 const double correction_dec,
39 const bool is_valid):
40 m_timestamp{timestamp}, m_correction_ra{correction_ra},
41 m_correction_dec{correction_dec}, m_is_valid{is_valid} {}
42
45 this->m_timestamp = corr.m_timestamp;
46 this->m_correction_ra= corr.m_correction_ra;
47 this->m_correction_dec = corr.m_correction_dec;
48 this->m_is_valid = corr.m_is_valid;
49 return *this;
50 }
51
56 m_timestamp{ecos::TaiClock::now()}, m_correction_ra{0.0},
57 m_correction_dec{0.0}, m_is_valid{false}
58 { }
59
63 m_timestamp{corr.m_timestamp}, m_correction_ra{corr.m_correction_ra},
64 m_correction_dec{corr.m_correction_dec}, m_is_valid{corr.m_is_valid}
65 {}
66
69 ecos::TaiClock::time_point GetTimestamp() const { return m_timestamp; }
70
73 double GetRa() const { return m_correction_ra; }
74
77 double GetDec() const { return m_correction_dec; }
78
81 bool IsValid() const { return m_is_valid; }
82
83 private:
84
86 ecos::TaiClock::time_point m_timestamp; // NOLINT: immutable does not need a get
87
89 double m_correction_ra; // NOLINT: immutable does not need a get
90
92 double m_correction_dec; // NOLINT: immutable does not need a get
93
95 bool m_is_valid; // NOLINT: immutable does not need a get
96 };
97}
98
99#endif // HLCC_PFSSIMHLCC_POINTING_CORRECTION_TYPE_HPP
Definition: pointingCorrection.hpp:25
double GetDec() const
Getter.
Definition: pointingCorrection.hpp:77
PointingCorrection(const ecos::TaiClock::time_point timestamp, const double correction_ra, const double correction_dec, const bool is_valid)
Definition: pointingCorrection.hpp:35
PointingCorrection()
Definition: pointingCorrection.hpp:55
PointingCorrection(const PointingCorrection &corr)
Copy constructor.
Definition: pointingCorrection.hpp:62
bool IsValid() const
Getter.
Definition: pointingCorrection.hpp:81
ecos::TaiClock::time_point GetTimestamp() const
getter
Definition: pointingCorrection.hpp:69
double GetRa() const
Getter.
Definition: pointingCorrection.hpp:73
PointingCorrection & operator=(const PointingCorrection &corr)
Assignement operator.
Definition: pointingCorrection.hpp:44
Definition: pointingCorrection.hpp:18