#include <core/CommandEvent.h>
Base class for all command enabled devices. CommandEvent::handleCommand() is called for each device every time CommandEvent::process() is called.
|
| CommandEvent () |
| Default Constructor. More...
|
|
virtual void | handleCommand (const char *cmd)=0 |
| Subclasses should implement this function to process commands specific to their device. More...
|
|
virtual void | handleCommand (String cmd) |
| Subclasses should implement this function to process commands specific to their device. More...
|
|
◆ CommandEvent()
CommandEvent::CommandEvent |
( |
| ) |
|
|
inline |
Default Constructor.
Registers the subclass to handle command strings.
◆ handleCommand() [1/2]
virtual void CommandEvent::handleCommand |
( |
const char * |
cmd | ) |
|
|
pure virtual |
Subclasses should implement this function to process commands specific to their device.
By convention the first two characters are the device type identifier. 'H' 'P' for holoprojector, etc.
Implemented in HoloOLED< DATA_PIN, RGB_ORDER, NUM_LEDS >, TeecesFrontLogics, HoloLights< DATA_PIN, RGB_ORDER, NUM_LEDS >, HoloLights< 45, GRB, 12 >, DataPanel, FireStrip< DATA_PIN, RGB_ORDER, NUM_LEDS >, ChargeBayIndicator, PeriscopeI2C, Gripper, HoloDisplay< DATA_PIN, RGB_ORDER, NUM_LEDS >, MagicPanelBase, Welder, Zapper, BadMotivator, Stance, TeecesRearLogics, InterchangeArm, StealthBoardI2C, MagicPanelI2C, and LogicEngineRenderer.
◆ handleCommand() [2/2]
virtual void CommandEvent::handleCommand |
( |
String |
cmd | ) |
|
|
inlinevirtual |
Subclasses should implement this function to process commands specific to their device.
By convention the first two characters are the device type identifier. 'H' 'P' for holoprojector, etc.
◆ process() [1/3]
static void CommandEvent::process |
( |
char * |
cmd | ) |
|
|
inlinestatic |
◆ process() [2/3]
static void CommandEvent::process |
( |
const char * |
cmd | ) |
|
|
inlinestatic |
◆ process() [3/3]
The documentation for this class was generated from the following file: