GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
Base class for terminal character decoders. More...
#include "TerminalCharacterDecoder.h"
Public Member Functions | |
virtual | ~TerminalCharacterDecoder () |
virtual void | begin (QTextStream *output)=0 |
Begin decoding characters. More... | |
virtual void | decodeLine (const Character *const characters, int count, LineProperty properties)=0 |
Converts a line of terminal characters with associated properties into a text string and writes the string into an output QTextStream. More... | |
virtual void | end ()=0 |
End decoding. More... | |
Base class for terminal character decoders.
The decoder converts lines of terminal characters which consist of a unicode character, foreground and background colours and other appearance-related properties into text strings.
Derived classes may produce either plain text with no other colour or appearance information, or they may produce text which incorporates these additional properties.
Definition at line 40 of file TerminalCharacterDecoder.h.
|
inlinevirtual |
Definition at line 43 of file TerminalCharacterDecoder.h.
|
pure virtual |
Begin decoding characters.
The resulting text is appended to output
.
Implemented in HTMLDecoder, and PlainTextDecoder.
|
pure virtual |
Converts a line of terminal characters with associated properties into a text string and writes the string into an output QTextStream.
characters | An array of characters of length count . |
properties | Additional properties which affect all characters in the line |
output | The output stream which receives the decoded text |
Implemented in HTMLDecoder, and PlainTextDecoder.
Referenced by Screen::copyLineToStream().
|
pure virtual |
End decoding.
Implemented in HTMLDecoder, and PlainTextDecoder.