From 81cadfce17e0c41639cbb2f8d30d88ac16679a6c Mon Sep 17 00:00:00 2001 From: Sander Speetjens Date: Thu, 22 Aug 2024 13:47:50 +0200 Subject: [PATCH] simulators Add function to retrieve active sim name --- tools/simulators.cpp | 5 +++++ tools/simulators.hpp | 1 + 2 files changed, 6 insertions(+) diff --git a/tools/simulators.cpp b/tools/simulators.cpp index 2632366..b136224 100644 --- a/tools/simulators.cpp +++ b/tools/simulators.cpp @@ -6,6 +6,11 @@ Simulators::Simulators() INSERT_SIMULATOR(Test_Sim); } +std::string Simulators::active_simulator_name() const +{ + return this->m_current_simulator; +} + void Simulators::run() { if (this->m_simulators.empty()) diff --git a/tools/simulators.hpp b/tools/simulators.hpp index 7aee82f..c52fea5 100644 --- a/tools/simulators.hpp +++ b/tools/simulators.hpp @@ -9,6 +9,7 @@ class Simulators { public: Simulators(); + std::string active_simulator_name() const; void run(); void stop(); void switch_simulator(std::string name);