summaryrefslogtreecommitdiff
path: root/src/sfile.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sfile.h')
-rw-r--r--src/sfile.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/sfile.h b/src/sfile.h
new file mode 100644
index 0000000..f94aef7
--- /dev/null
+++ b/src/sfile.h
@@ -0,0 +1,23 @@
1#ifndef SFILE_H
2#define SFILE_H
3
4#include <stdint.h>
5
6#include "stream.h"
7
8class SFile : public Stream
9{
10public:
11 SFile( const char *sName, const char *sFlags );
12 virtual ~SFile();
13
14 virtual void close();
15 virtual size_t read( char *pBuf, size_t nBytes );
16 virtual size_t write( char *pBuf, size_t nBytes );
17
18private:
19 FILE *fh;
20
21};
22
23#endif