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::InternalString readLine()

Protected Functions

virtual const typename Trait::Char *data() const = 0
virtual typename Trait::Char &getChar() = 0
virtual bool isEmpty() const = 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] const typename Trait::Char *TextStreamBase::data() const

Returns data.

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

Returns current character from stream and moves to next character.

[pure virtual protected] bool TextStreamBase::isEmpty() const

Returns whether this stream is empty.

typename Trait::InternalString TextStreamBase::readLine()

Returns current line from stream and moves to next line.

Member Variable Documentation

long long TextStreamBase::m_pos

Current position in stream.