Class to enable simple logging to a Stream object with different log levels This enables embedding pe...
Definition Logger.h:35
Definition ScreenRow.h:24
Class for each screen as received from the EXRAIL SCREEN() command Each Screen instance contains a li...
Definition Screen.h:27
void updateScreenRow(uint8_t screenRowId, const char *text)
Update the specified ScreenRow, or create it if it doesn't exist This will automatically maintain the...
Definition Screen.cpp:28
ScreenRow * getFirstScreenRow()
Get the first ScreenRow instance in the list.
Definition Screen.cpp:49
ScreenRow * getScreenRowById(uint8_t screenRowId)
Get the ScreenRow instance at the specified ID.
Definition Screen.cpp:51
void _addScreenRow(uint8_t screenRowId, const char *text)
Add a new ScreenRow to the list.
Definition Screen.cpp:80
void setLogger(Logger *logger)
Set the Logger instance.
Definition Screen.cpp:63
~Screen()
Destructor for the Screen instance Will automatically clean up the associated ScreenRow list.
Definition Screen.cpp:65
void _deleteScreenRow(ScreenRow *screenRow)
Delete the specified ScreenRow and update the list accordingly.
Definition Screen.cpp:101
void setNext(Screen *screen)
Set the next Screen instance in the list.
Definition Screen.cpp:24
ScreenRow * _firstScreenRow
Definition Screen.h:72
Screen * _next
Definition Screen.h:71
Logger * _logger
Definition Screen.h:73
uint8_t getId()
Get the ID for this screen instance.
Definition Screen.cpp:22
uint8_t _screenId
Definition Screen.h:70
Screen * getNext()
Get the next Screen instance in the list.
Definition Screen.cpp:26