20 lines
487 B
C++
20 lines
487 B
C++
|
/***
|
||
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
||
|
|
||
|
File: IBufferedLineReader.hpp
|
||
|
Date: 2022-1-29
|
||
|
Author: Reece
|
||
|
***/
|
||
|
#pragma once
|
||
|
|
||
|
namespace Aurora::IO::Character
|
||
|
{
|
||
|
struct IBufferedLineReader
|
||
|
{
|
||
|
virtual bool ReadBytes(AuUInt32 length) = 0;
|
||
|
virtual void Flush() = 0;
|
||
|
virtual AuList<AuString> ReadLines() = 0;
|
||
|
};
|
||
|
|
||
|
AUKN_SHARED_API(NewLineReader, IBufferedLineReader, const AuSPtr<IStreamReader> &input);
|
||
|
}
|