Commanders
Arduino buttons/bus library
|
#include "TextInterpreter.hpp"
Public Member Functions | |
TextInterpreter () | |
void | Init () |
unsigned long | SendChar (char inCharacter) |
unsigned long | SendString (char *inpString) |
This class 'interprets' a string and send an event when found.
The accepted syntax is
id separator event separator data
where id can be a number from 0 to 4 000 000 000, where separator can be ',' , ';' , '/' or ' ' where event can be any string of 9 characters long maximum, but must begin with (case insensitive)
id can be dccid:dccacc for Dcc id, where dccid is the dcc address and dccacc 0 or 1.
TextInterpreter::TextInterpreter | ( | ) |
Default constructor.
void TextInterpreter::Init | ( | ) |
Initialize internal data.
unsigned long TextInterpreter::SendChar | ( | char | inCharacter | ) |
Send a new character to the class.
unsigned long TextInterpreter::SendString | ( | char * | inpString | ) |
Send a full string to the class.