Files
MotionCore/MotionCore/MainLoop.h
T
2025-12-08 00:59:09 +01:00

21 lines
386 B
C++
Executable File

#pragma once
#include "Arm.h"
// Singleton-class, use MainLoop::getInstance() to get the only instance of the runtime
class MainLoop
{
public:
static MainLoop& getInstance();
MainLoop(const MainLoop& other) = delete;
MainLoop(MainLoop&& other) = delete;
~MainLoop() noexcept;
void run();
private:
MainLoop() noexcept;
bool isRunning = true;
Arm arm;
};