25 #include "common/scummsys.h" 26 #include "common/fs.h" 27 #include "common/noncopyable.h" 28 #include "common/str.h" 29 #include "common/stream.h" 75 virtual bool open(
const Path &filename);
112 virtual void close();
126 const char *
getName()
const {
return _name.c_str(); }
128 bool err()
const override;
130 bool eos()
const override;
132 int64
pos()
const override;
133 int64
size()
const override;
134 bool seek(int64 offs,
int whence = SEEK_SET)
override;
135 uint32
read(
void *dataPtr, uint32 dataSize)
override;
154 virtual bool open(
const Path &filename,
bool createPath =
false);
157 virtual void close();
166 bool err()
const override;
169 uint32 write(
const void *dataPtr, uint32 dataSize)
override;
171 bool flush()
override;
173 int64
pos()
const override;
175 bool seek(int64 offset,
int whence = SEEK_SET)
override;
176 int64
size()
const override;
uint32 read(void *dataPtr, uint32 dataSize) override
virtual bool open(const Path &filename)
String _name
Definition: file.h:53
Definition: archive.h:141
Definition: noncopyable.h:39
const char * getName() const
Definition: file.h:126
SeekableReadStream * _handle
Definition: file.h:50
int64 size() const override
Definition: algorithm.h:29
bool eos() const override
static bool exists(const Path &filename)
int64 pos() const override
bool err() const override
WriteStream * _handle
Definition: file.h:148
bool seek(int64 offs, int whence=SEEK_SET) override