simulators

Add function to retrieve active sim name
This commit is contained in:
2024-08-22 13:47:50 +02:00
parent afdba524c2
commit 81cadfce17
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -6,6 +6,11 @@ Simulators::Simulators()
INSERT_SIMULATOR(Test_Sim); INSERT_SIMULATOR(Test_Sim);
} }
std::string Simulators::active_simulator_name() const
{
return this->m_current_simulator;
}
void Simulators::run() void Simulators::run()
{ {
if (this->m_simulators.empty()) if (this->m_simulators.empty())
+1
View File
@@ -9,6 +9,7 @@
class Simulators { class Simulators {
public: public:
Simulators(); Simulators();
std::string active_simulator_name() const;
void run(); void run();
void stop(); void stop();
void switch_simulator(std::string name); void switch_simulator(std::string name);