This commit is contained in:
2025-08-02 14:40:05 +03:00
parent 9bfe1c3ad5
commit 25438960e6
9 changed files with 87 additions and 71 deletions

View File

@@ -58,10 +58,7 @@ namespace mcc::astrom::erfa
struct MccMountAstromEngineERFACategory : public std::error_category {
MccMountAstromEngineERFACategory() : std::error_category() {}
const char* name() const noexcept
{
return "ADC_GENERIC_DEVICE";
}
const char* name() const noexcept { return "ADC_GENERIC_DEVICE"; }
std::string message(int ec) const
{
@@ -178,6 +175,12 @@ public:
MccMountAstromEngineERFA(engine_state_t state) : _currentState(std::move(state)) {}
MccMountAstromEngineERFA(MccMountAstromEngineERFA&&) = default;
MccMountAstromEngineERFA& operator=(MccMountAstromEngineERFA&&) = default;
MccMountAstromEngineERFA(const MccMountAstromEngineERFA&) = delete;
MccMountAstromEngineERFA& operator=(const MccMountAstromEngineERFA&) = delete;
virtual ~MccMountAstromEngineERFA() = default;
void setState(engine_state_t state)
@@ -251,10 +254,7 @@ public:
/* time-related methods */
static time_point_t timePointNow()
{
return time_point_t::clock::now();
}
static time_point_t timePointNow() { return time_point_t::clock::now(); }
// templated generic version
template <mcc::traits::mcc_systime_c TpT>
@@ -554,26 +554,14 @@ public:
/* helper mathods */
auto leapSecondsExpireDate() const
{
return _currentState._leapSeconds.expireDate();
}
auto leapSecondsExpireDate() const { return _currentState._leapSeconds.expireDate(); }
auto leapSecondsExpireMJD() const
{
return _currentState._leapSeconds.expireMJD();
}
auto leapSecondsExpireMJD() const { return _currentState._leapSeconds.expireMJD(); }
auto bulletinADateRange() const
{
return _currentState._bulletinA.dateRange();
}
auto bulletinADateRange() const { return _currentState._bulletinA.dateRange(); }
auto bulletinADateRangeMJD() const
{
return _currentState._bulletinA.dateRangeMJD();
}
auto bulletinADateRangeMJD() const { return _currentState._bulletinA.dateRangeMJD(); }
protected:
engine_state_t _currentState{};