app/backend_factory.h

choose the IBoardBackend for a GameSession.

The GUI and CLI both need to decide, at startup, whether to drive real hardware (HardwareBackend over the gantry + hall sensors) or run off-Pi in simulation (SimBackend). That decision is capability + environment driven and is deliberately kept here — Qt-free and unit-testable — rather than inside the Qt SessionBridge. See docs/gui-docs/PLAN.md §3.3 (Phase 5).

namespace kirin
struct BackendSelection
#include <backend_factory.h>

Public Types

enum class Mode

Values:

enumerator Auto
enumerator Sim
enumerator Hardware

Public Members

Mode mode = Mode::Auto
std::string gantryPort