|
DUDS
|
Distributed Update of Data from Something
|
An output stream for buffering writes to TextDisplay objects. More...
#include <TextDisplayStream.hpp>
Public Member Functions | |
| TextDisplayBasicBufferedStream (const std::shared_ptr< TextDisplay > &d) | |
| Makes an output stream that writes to a buffer, and writes that buffer to the given display when flushed. More... | |
Public Member Functions inherited from duds::hardware::display::TextDisplayBaseStream< Char, Traits > | |
| TextDisplayBaseStream (TextDisplayBasicStreambuf< Char, Traits > *tbuf) | |
| Makes an output stream that writes to the given display. More... | |
| void | clearDisplay () |
| Remove all text from the display and place the cursor in the upper left corner. More... | |
| void | clearTo (unsigned int c, unsigned int r) |
| Clear text from the current cursor position to the given position, inclusive. More... | |
| const std::shared_ptr< TextDisplay > & | display () const |
| Returns the output display. More... | |
| void | moveCursor (unsigned int c, unsigned int r) |
| Moves the display's cursor to the given location. More... | |
| void | startLine () |
| Moves the cursor to the start of a line clearing text along the way. More... | |
Private Attributes | |
| TextDisplayBasicBufferedStreambuf< Char, Traits > | buff |
| The buffer handling the output. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from duds::hardware::display::TextDisplayBaseStream< Char, Traits > | |
| static int | xallocIndex () |
| Returns the index from xalloc(); needed by the stream manipulators. More... | |
An output stream for buffering writes to TextDisplay objects.
It supports the use of stream modifiers intended specifically for use with TextDisplay. Stream seeking is supported, but repositioning the display's cursor may be easier to manage. Data is not written to the display until the stream is flushed.
Definition at line 542 of file TextDisplayStream.hpp.
|
inline |
Makes an output stream that writes to a buffer, and writes that buffer to the given display when flushed.
| d | The display that will receive output. |
Definition at line 554 of file TextDisplayStream.hpp.
|
private |
The buffer handling the output.
Definition at line 546 of file TextDisplayStream.hpp.