CONZEPT 16 C++ API
C16::Text::StreamBufferOutput Class Reference

Output stream buffer for writing texts. More...

#include "C16/Text.hpp"

Inheritance diagram for C16::Text::StreamBufferOutput:
C16::Text::StreamBuffer

Detailed Description

Output stream buffer for writing texts.

Public Member Functions

 StreamBufferOutput ()
 Constructs an output stream buffer. More...
 
void associate (Text &text)
 
void dissociate () override
 Dissociates an associated text buffer from the output stream buffer. More...
 
bool associated () const override
 Gets if there is text buffer associated with the output stream buffer. More...
 
const Texttext () const override
 Gets the text buffer associated with the output stream buffer, if associated. More...
 
Texttext ()
 Gets the text buffer associated with the output stream buffer, if associated. More...
 
- Public Member Functions inherited from C16::Text::StreamBuffer
LineBreak line_break () const
 Gets the line break of the stream buffer. More...
 
void line_break_set (LineBreak line_break)
 Sets the line break of the stream buffer. More...
 

Constructor & Destructor Documentation

◆ StreamBufferOutput()

C16::Text::StreamBufferOutput::StreamBufferOutput ( )

Constructs an output stream buffer.

Member Function Documentation

◆ associate()

void C16::Text::StreamBufferOutput::associate ( Text text)

Associates a text buffer with the output stream buffer.

Parameters
textText buffer
Note
Has no effect if there already is a text buffer associated with the output stream buffer.

◆ dissociate()

void C16::Text::StreamBufferOutput::dissociate ( )
overridevirtual

Dissociates an associated text buffer from the output stream buffer.

Note
Has no effect if there is no text buffer associated with the output stream buffer.

Implements C16::Text::StreamBuffer.

◆ associated()

bool C16::Text::StreamBufferOutput::associated ( ) const
overridevirtual

Gets if there is text buffer associated with the output stream buffer.

Implements C16::Text::StreamBuffer.

◆ text() [1/2]

const Text* C16::Text::StreamBufferOutput::text ( ) const
overridevirtual

Gets the text buffer associated with the output stream buffer, if associated.

Implements C16::Text::StreamBuffer.

◆ text() [2/2]

Text* C16::Text::StreamBufferOutput::text ( )

Gets the text buffer associated with the output stream buffer, if associated.