MD::TextStreamBase Class

template <typename Trait> class MD::TextStreamBase

Base class for text stream. More...

Header: #include <md4qt/parser.h>
CMake: find_package(md4qt REQUIRED COMPONENTS md4qt)
target_link_libraries(mytarget PRIVATE md4qt::md4qt)
Inherited By:

MD::TextStream

Public Functions

virtual bool atEnd() const = 0
typename Trait::String readLine()

Protected Functions

virtual typename Trait::Char getChar() = 0

Protected Variables

long long m_pos

Detailed Description

This is common things for text streams used for splitting string into lines.

Member Function Documentation

[pure virtual] bool TextStreamBase::atEnd() const

Returns whether stream at end.

[pure virtual protected] typename Trait::Char TextStreamBase::getChar()

Returns current character from stream and moves to next character.

typename Trait::String TextStreamBase::readLine()

Returns current line from stream and moves to next line.

Member Variable Documentation

long long TextStreamBase::m_pos

Current position in stream.