mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
24 lines
481 B
C++
24 lines
481 B
C++
#pragma once
|
|
|
|
#include "UI.hpp"
|
|
#include "timer.hpp"
|
|
|
|
class SimulatorBase {
|
|
|
|
public:
|
|
SimulatorBase(std::string name);
|
|
|
|
void add_UI_item(UI_item* item);
|
|
json get_UI_items() const;
|
|
|
|
UI_item* get_UI_item(std::string id) const;
|
|
|
|
void run();
|
|
|
|
virtual void timer() {};
|
|
protected:
|
|
std::string p_name;
|
|
std::vector<UI_item*> p_UI_items;
|
|
std::map<std::string, UI_item*> p_UI_items_map;
|
|
Timer p_timer;
|
|
}; |