32 lines
No EOL
418 B
C++
32 lines
No EOL
418 B
C++
#pragma once
|
|
|
|
#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;
|
|
}; |