Changes between Version 2 and Version 3 of ~archive/OutputBuffer
- Timestamp:
- Apr 15, 2017, 3:40:51 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
~archive/OutputBuffer
v2 v3 1 [[ArchivePage]] 2 1 3 = OutputBuffer = 2 4 3 5 == Description == 4 !OutputBuffer is a buffer between [wiki: archive/OutputHandler OutputHandler] and [wiki:Shell]. !OutputHandler passes arbitrary output to all output streams, but the Shell needs line-by-line output. That's where the !OutputBuffer comes in: It buffers as many lines as you want (almost) and provides a function for the Shell to get those lines.6 !OutputBuffer is a buffer between [wiki:OutputHandler OutputHandler] and [wiki:Shell]. !OutputHandler passes arbitrary output to all output streams, but the Shell needs line-by-line output. That's where the !OutputBuffer comes in: It buffers as many lines as you want (almost) and provides a function for the Shell to get those lines. 5 7 6 8 To avoid polling, the Shell and other interested classes have to register as a listener to the !OutputBuffer. Therefore they must inherit from ''OutputBufferListener'' and implement '''outputChanged()''', the function which gets called everytime text gets passed to the !OutputBuffer. … … 15 17 [[Image(OutputBuffer.png)]] 16 18 17 The illustration shows how text is passed via [wiki: archive/Debug COUT] into an !OutputBuffer, where it gets extracted line by line by a console.19 The illustration shows how text is passed via [wiki:Debug COUT] into an !OutputBuffer, where it gets extracted line by line by a console.