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

Generic stream for text buffers. More...

#include "C16/Text.hpp"

Inheritance diagram for C16::Text::Stream:
C16::Text::StreamInput C16::Text::StreamOutput

Detailed Description

Generic stream for text buffers.

Public Member Functions

bool associated () const
 Gets if there is text buffer associated with the stream. More...
 
const Texttext () const
 Gets the text buffer associated with the stream, if associated. More...
 
void dissociate ()
 Dissociates an associated text buffer from the stream. More...
 
LineBreak line_break () const
 Gets the line break of the stream. More...
 
void line_break_set (LineBreak line_break)
 Sets the line break of the stream. More...
 

Member Function Documentation

◆ associated()

bool C16::Text::Stream::associated ( ) const

Gets if there is text buffer associated with the stream.

◆ text()

const Text* C16::Text::Stream::text ( ) const

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

◆ dissociate()

void C16::Text::Stream::dissociate ( )

Dissociates an associated text buffer from the stream.

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

◆ line_break()

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

Gets the line break of the stream.

◆ line_break_set()

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

Sets the line break of the stream.

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