Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 1 and Version 2 of ~archive/OutputBuffer


Ignore:
Timestamp:
Aug 22, 2011, 2:08:34 PM (13 years ago)
Author:
landauf
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • ~archive/OutputBuffer

    v1 v2  
    22
    33== 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.
    55
    66To 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.
     
    1515[[Image(OutputBuffer.png)]]
    1616
    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.
     17The illustration shows how text is passed via [wiki:archive/Debug COUT] into an !OutputBuffer, where it gets extracted line by line by a console.