From 935e259479af498c78881fe64d72ff2615e9d3fa Mon Sep 17 00:00:00 2001 From: Reinder Feenstra Date: Sun, 24 Apr 2022 19:48:49 +0200 Subject: [PATCH] missing in 5fd81c255e244a9ee727367304a43d7deb64446e --- server/src/hardware/protocol/ecos/iohandler/iohandler.hpp | 6 ++++++ .../protocol/ecos/iohandler/simulationiohandler.hpp | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/server/src/hardware/protocol/ecos/iohandler/iohandler.hpp b/server/src/hardware/protocol/ecos/iohandler/iohandler.hpp index 7d8d5340..c996597e 100644 --- a/server/src/hardware/protocol/ecos/iohandler/iohandler.hpp +++ b/server/src/hardware/protocol/ecos/iohandler/iohandler.hpp @@ -53,6 +53,12 @@ class IOHandler virtual bool send(std::string_view message) = 0; }; +template +constexpr bool isSimulation() +{ + return false; +} + } #endif diff --git a/server/src/hardware/protocol/ecos/iohandler/simulationiohandler.hpp b/server/src/hardware/protocol/ecos/iohandler/simulationiohandler.hpp index a1d314db..620e0210 100644 --- a/server/src/hardware/protocol/ecos/iohandler/simulationiohandler.hpp +++ b/server/src/hardware/protocol/ecos/iohandler/simulationiohandler.hpp @@ -49,6 +49,12 @@ class SimulationIOHandler final : public IOHandler bool send(std::string_view message) final; }; +template<> +constexpr bool isSimulation() +{ + return true; +} + } #endif