From aaa415b62f6d1b815aa9a8954d2cf1ddb6a8317d Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 5 May 2024 21:20:26 +0200 Subject: Update common: make remotecontrol optional --- lib/ClockTAI.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'lib/ClockTAI.h') diff --git a/lib/ClockTAI.h b/lib/ClockTAI.h index 8cd00e5..d11dd10 100644 --- a/lib/ClockTAI.h +++ b/lib/ClockTAI.h @@ -35,8 +35,6 @@ #pragma once #include -#include -#include #include #include #include @@ -44,6 +42,7 @@ #include #include #include + #include "RemoteControl.h" // EDI needs to know UTC-TAI, but doesn't need the CLOCK_TAI to be set. @@ -86,7 +85,11 @@ class Bulletin { }; /* Loads, parses and represents TAI-UTC offset information from the IETF bulletin */ -class ClockTAI : public RemoteControllable { +class ClockTAI +#if ENABLE_REMOTECONTROL +: public RemoteControllable +#endif // ENABLE_REMOTECONTROL +{ public: ClockTAI(const std::vector& bulletin_urls); @@ -125,6 +128,7 @@ class ClockTAI : public RemoteControllable { std::optional m_state; std::chrono::steady_clock::time_point m_state_last_updated; +#if ENABLE_REMOTECONTROL public: /* Remote control */ virtual void set_parameter(const std::string& parameter, @@ -134,5 +138,6 @@ class ClockTAI : public RemoteControllable { virtual const std::string get_parameter(const std::string& parameter) const; virtual const json::map_t get_all_values() const; +#endif // ENABLE_REMOTECONTROL }; -- cgit v1.2.3