Changes between Version 1 and Version 2 of ~archive/OutputBuffer
- Timestamp:
- Aug 22, 2011, 2:08:34 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
~archive/OutputBuffer
v1 v2 2 2 3 3 == Description == 4 !OutputBuffer is a buffer between [wiki: 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.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. 5 5 6 6 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 15 [[Image(OutputBuffer.png)]] 16 16 17 The illustration shows how text is passed via [wiki: Debug COUT] into an !OutputBuffer, where it gets extracted line by line by a console.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.