resonance 1.0.1
Loading...
Searching...
No Matches
ibfilestream.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdio.h>
4
5#include "stream/ibstream.h"
6
7class HxStr;
8
21class IBFileStream : public IBStream {
22public:
32 IBFileStream(const HxStr &path);
33
40 virtual ~IBFileStream();
41
46 virtual IBStream &Read(void *pDest, int nSize);
47
52 virtual IBStream &Seek(int nOffset, int nWhence);
53
58 virtual int Tell();
59
64 virtual int Eof();
65
70 virtual int Fail();
71
76 virtual IBStream &Flush();
77
78private:
79 FILE *mFile;
80};
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
virtual int Fail()
IBFileStream(const HxStr &path)
Open a file for reading.
virtual int Eof()
virtual ~IBFileStream()
Close the file.
virtual IBStream & Seek(int nOffset, int nWhence)
virtual IBStream & Read(void *pDest, int nSize)
virtual int Tell()
virtual IBStream & Flush()
Input half of the byte stream interface.
Definition ibstream.h:36