Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Apr 15, 2017, 3:40:51 PM (8 years ago)
Author:
landauf
Comment:

fixed links

Legend:

Unmodified
Added
Removed
Modified
  • ~archive/OutputBuffer

    v2 v3  
     1[[ArchivePage]]
     2
    13= OutputBuffer =
    24
    35== 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.
    57
    68To 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.
     
    1517[[Image(OutputBuffer.png)]]
    1618
    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.
     19The illustration shows how text is passed via [wiki:Debug COUT] into an !OutputBuffer, where it gets extracted line by line by a console.