supertux
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
ConsoleBuffer Class Referencefinal
Inheritance diagram for ConsoleBuffer:
Inheritance graph
[legend]
Collaboration diagram for ConsoleBuffer:
Collaboration graph
[legend]

Public Member Functions

void addLines (const std::string &s)
 display a string of (potentially) multiple lines in the console
 
void addLine (const std::string &s)
 display a line in the console
 
void flush (ConsoleStreamBuffer &buffer)
 act upon changes in a ConsoleStreamBuffer
 
void set_console (Console *console)
 

Public Attributes

std::list< std::string > m_lines
 backbuffer of lines sent to the console. More...
 
Consolem_console
 

Static Public Attributes

static std::ostream output
 stream of characters to output to the console. More...
 
static ConsoleStreamBuffer s_outputBuffer
 stream buffer used by output stream
 

Additional Inherited Members

- Static Public Member Functions inherited from Currenton< ConsoleBuffer >
static ConsoleBuffercurrent ()
 

Member Data Documentation

◆ m_lines

std::list<std::string> ConsoleBuffer::m_lines

backbuffer of lines sent to the console.

New lines get added to front.

◆ output

std::ostream ConsoleBuffer::output
static

stream of characters to output to the console.

Do not forget to send std::endl or to flush the stream.


The documentation for this class was generated from the following files: