libstp
Robotics library for Botball
Loading...
Searching...
No Matches
ScreenRender.hpp
Go to the documentation of this file.
1//
2// Created by eternalRose on 12/18/25.
3//
4
5#pragma once
6
7#include <string>
8
24 std::string screenName;
25 public:
26
28 {
29 static ScreenRender writer;
30 return writer;
31 }
32
33 explicit ScreenRender();
34 ~ScreenRender()=default;
35
37 void sendState(const std::string& jsonData);
38
40 void setCurrentScreenSetting(std::string newScreen);
41 };
42}
void setCurrentScreenSetting(std::string newScreen)
Set the logical screen name used by later sendState() calls.
void sendState(const std::string &jsonData)
Publish the current screen payload if a screen name has been selected.