diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-10-31 05:44:33 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-10-31 05:44:33 +0000 |
commit | bdd4bdd8615b1587974312a92219cbeab0068a7a (patch) | |
tree | c4fd27267755179327673e4fc501740d01ed9b43 /src/sfile.h | |
parent | a67fdaa1ef1e3a5eea88d19e327c05330998e8aa (diff) | |
download | libbu++-bdd4bdd8615b1587974312a92219cbeab0068a7a.tar.gz libbu++-bdd4bdd8615b1587974312a92219cbeab0068a7a.tar.bz2 libbu++-bdd4bdd8615b1587974312a92219cbeab0068a7a.tar.xz libbu++-bdd4bdd8615b1587974312a92219cbeab0068a7a.zip |
Changed the file class to be SFile so that it will collide less, all of them
will be named like that, make life easier.
Diffstat (limited to 'src/sfile.h')
-rw-r--r-- | src/sfile.h | 23 |
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 | |||
8 | class SFile : public Stream | ||
9 | { | ||
10 | public: | ||
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 | |||
18 | private: | ||
19 | FILE *fh; | ||
20 | |||
21 | }; | ||
22 | |||
23 | #endif | ||