|
libstp
Robotics library for Botball
|
#include <ScreenRender.hpp>
Public Member Functions | |
| ScreenRender () | |
| ~ScreenRender ()=default | |
| void | sendState (const std::string &jsonData) |
| Publish the current screen payload if a screen name has been selected. | |
| void | setCurrentScreenSetting (std::string newScreen) |
| Set the logical screen name used by later sendState() calls. | |
Static Public Member Functions | |
| static ScreenRender & | instance () |
Singleton helper for publishing screen-render state over raccoon transport.
This header declares the public surface only. The implementation lives in the selected platform bundle (wombat publishes over raccoon transport; mock is a no-op). The class layout is deliberately transport-free so that every consumer — and the bundle-agnostic raccoon.hal extension — can include this header without depending on raccoon transport headers. The wombat implementation keeps its raccoon::Transport instance in a translation-unit-local static inside its ScreenRender.cpp instead of a member here, so switching the platform bundle at runtime never changes this object's size or layout.
Definition at line 23 of file ScreenRender.hpp.
|
explicit |
|
default |
|
inlinestatic |
Definition at line 27 of file ScreenRender.hpp.
| void libstp::hal::screen_render::ScreenRender::sendState | ( | const std::string & | jsonData | ) |
Publish the current screen payload if a screen name has been selected.
| void libstp::hal::screen_render::ScreenRender::setCurrentScreenSetting | ( | std::string | newScreen | ) |
Set the logical screen name used by later sendState() calls.