CONZEPT 16 C++ API
C16::Text::StreamBuffer Class Referenceabstract

Generic stream buffer for text buffers. More...

#include "C16/Text.hpp"

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

Detailed Description

Generic stream buffer for text buffers.

Public Member Functions

virtual bool associated () const =0
 Gets if there is text buffer associated with the stream buffer. More...
 
virtual void dissociate ()=0
 Dissociates an associated text buffer from the stream buffer. More...
 
virtual const Texttext () const =0
 Gets the text buffer associated with the stream buffer, if associated. More...
 
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...
 

Member Function Documentation

◆ associated()

virtual bool C16::Text::StreamBuffer::associated ( ) const
pure virtual

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

Implemented in C16::Text::StreamBufferOutput, and C16::Text::StreamBufferInput.

◆ dissociate()

virtual void C16::Text::StreamBuffer::dissociate ( )
pure virtual

Dissociates an associated text buffer from the stream buffer.

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

Implemented in C16::Text::StreamBufferOutput, and C16::Text::StreamBufferInput.

◆ text()

virtual const Text* C16::Text::StreamBuffer::text ( ) const
pure virtual

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

Implemented in C16::Text::StreamBufferOutput, and C16::Text::StreamBufferInput.

◆ line_break()

LineBreak C16::Text::StreamBuffer::line_break ( ) const

Gets the line break of the stream buffer.

◆ line_break_set()

void C16::Text::StreamBuffer::line_break_set ( LineBreak  line_break)

Sets the line break of the stream buffer.

Parameters
line_breakLine break of the stream buffer
Exceptions
Exception::InvalidityLine break invalid.