simple wrapper around TTY & Logger useful for creating simple user interactions More...
#include <comm.h>
Public Member Functions | |
| bool | full () override |
| check if sink is full | |
| void | push (Buffer< uint8_t > &&b) override |
| move semantics does not check for space. guard by using 'if (!full) { ... }' | |
| virtual void | push (const T &t) |
| copy semantics does not check for space. guard by using 'if (!full) { ... }' | |
| virtual void | push (T &&)=0 |
| move semantics does not check for space. guard by using 'if (!full) { ... }' | |
| virtual void | push (const Buffer< uint8_t > &t) |
| copy semantics does not check for space. guard by using 'if (!full) { ... }' | |
| bool | empty () override |
| check if source is empty | |
| Buffer< uint8_t > | pop () override |
| pull object from source does not check for data. guard by using 'if (!empty) { ... }' | |
| void | trypush (Buffer< uint8_t > &&t) |
| use this if you don't care if it's going to be successful. data gets discarded if sink is full. | |
| void | info (const char *fmt,...) |
| Info log level. | |
| void | warn (const char *fmt,...) |
| Warn log level. | |
| void | print (const char *fmt,...) |
| None log level. | |
| bool | full () override |
| check if sink is full | |
| void | push (Buffer< uint8_t > &&b) override |
| push otherwisely prepared Buffer through Logger | |
| void | trypush (Buffer< uint8_t > &&t) |
| use this if you don't care if it's going to be successful. data gets discarded if sink is full. | |