Start proper stream support.
This commit is contained in:
parent
5183aa821a
commit
e3e03dc31f
34 changed files with 421 additions and 402 deletions
|
@ -1,11 +1,32 @@
|
|||
#pragma once
|
||||
|
||||
#include "ByteTypes.h"
|
||||
#include "Byte.h"
|
||||
#include "Stream.h"
|
||||
#include "FileSystemPath.h"
|
||||
#include "File.h"
|
||||
|
||||
class InputFileStream : public InputStream<Byte>
|
||||
{
|
||||
public:
|
||||
|
||||
InputFileStream(const FileSystemPath& path)
|
||||
: File(path)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
bool good() const override
|
||||
{
|
||||
return
|
||||
}
|
||||
|
||||
bool get(T& item) = 0;
|
||||
|
||||
private:
|
||||
void finished()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
File mFile;
|
||||
Status mStatus;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue