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