68 const char*
parseWord(
char* buf,
size_t buflen);
70 const char*
getLine(
char* buf,
size_t buflen);
81 static IrSignal*
parse(Stream &stream);
83 microseconds_t*
parseData(microseconds_t* buffer,
size_t length);
94 char customReadChar();
95 void disposeUntilWhitespace();
96 static unsigned int parseHex(
char c);
101 uint16_t parseProntoNumber();
Simple class for parsing stuff from an (input) Stream.
int32_t parseAbsInt()
Reads a number and returns it as 16 bit unsigned.
static IrSignal * parse(Stream &stream)
Convenience function: combines the constructor and parseIrSignal.
const char * getLine(char *buf, size_t buflen)
int32_t parseAbsIntDefault(int32_t fallback)
Reads a number and returns it as 16 bit unsigned.
const char * parseWord(char *buf, size_t buflen)
Returns a word (separated by whitespace).
IrSignal * parseIrSignal()
Reads the stream and parses it into an IrSignal.
StreamParser(Stream &stream)
Constructor.
microseconds_t * parseData(microseconds_t *buffer, size_t length)
IrSignal * parsePronto()
Reads a Pronto Hex format IR signal.
virtual ~StreamParser()
Destructor.
static constexpr int invalid