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

Input stream buffer for reading text buffers. More...

#include "C16/Text.hpp"

Inheritance diagram for C16::Text::StreamBufferInput:
C16::Text::StreamBuffer

Detailed Description

Input stream buffer for reading text buffers.

Public Member Functions

 StreamBufferInput ()
 Constructs an input stream buffer. More...
 
void associate (const Text &text)
 
void dissociate () override
 Dissociates an associated text buffer from the input stream buffer. More...
 
bool associated () const override
 Gets if there is text buffer associated with the input stream buffer. More...
 
const Texttext () const override
 Gets the text buffer associated with the input 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

◆ StreamBufferInput()

C16::Text::StreamBufferInput::StreamBufferInput ( )

Constructs an input stream buffer.

Member Function Documentation

◆ associate()

void C16::Text::StreamBufferInput::associate ( const Text text)

Associates a text buffer with the input stream buffer.

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

◆ dissociate()

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

Dissociates an associated text buffer from the input stream buffer.

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

Implements C16::Text::StreamBuffer.

◆ associated()

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

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

Implements C16::Text::StreamBuffer.

◆ text()

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

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

Implements C16::Text::StreamBuffer.