26 #include "StreamReader.h" 37 if (mStream.available() == 0)
return false;
57 bool error = addToBuffer(c);
82 bool error = addToBuffer(c);
94 *isError = (c !=
',');
110 while (mStream.available() > 0) {
111 char c = mStream.read();
114 if (mIndex >= mBufSize - 1) {
130 bool StreamReader::addToBuffer(
char c) {
133 if (mIndex >= mBufSize - 1) {
bool getChar(char *c)
Get a character from serial port.
bool getLine(bool *isError, char **line)
Get a line.
bool getInteger(bool *isError, int *value)
Get an integer.
bool skipWhiteSpace()
Skip whitespace.
bool getComma(bool *isError)
Parse a comma.
bool getWordString(bool *isError, char **word)
Get a string bounded by whitespace, i.e.