libstp
Robotics library for Botball
Loading...
Searching...
No Matches
libstp::hal::screen_render::ScreenRender Class Reference

#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 ()

Detailed Description

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.

Constructor & Destructor Documentation

◆ ScreenRender()

libstp::hal::screen_render::ScreenRender::ScreenRender ( )
explicit

◆ ~ScreenRender()

libstp::hal::screen_render::ScreenRender::~ScreenRender ( )
default

Member Function Documentation

◆ instance()

ScreenRender & libstp::hal::screen_render::ScreenRender::instance ( )
inlinestatic

Definition at line 27 of file ScreenRender.hpp.

◆ sendState()

void libstp::hal::screen_render::ScreenRender::sendState ( const std::string & jsonData)

Publish the current screen payload if a screen name has been selected.

◆ setCurrentScreenSetting()

void libstp::hal::screen_render::ScreenRender::setCurrentScreenSetting ( std::string newScreen)

Set the logical screen name used by later sendState() calls.


The documentation for this class was generated from the following file:
  • /home/runner/work/raccoon-lib/raccoon-lib/modules/libstp-hal/include/hal/ScreenRender.hpp