diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-04-10 20:16:19 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-04-10 20:16:19 +0000 |
commit | 070374dde0f53bff26078550997f7682e84412e5 (patch) | |
tree | d9088b02e9b5f08f25d7f07f3a26035eea00e8e9 /src/file.h | |
parent | e7ab7cb1604c04763bbdcece5885e6ce5aa100b4 (diff) | |
download | libbu++-070374dde0f53bff26078550997f7682e84412e5.tar.gz libbu++-070374dde0f53bff26078550997f7682e84412e5.tar.bz2 libbu++-070374dde0f53bff26078550997f7682e84412e5.tar.xz libbu++-070374dde0f53bff26078550997f7682e84412e5.zip |
I did it, the streams don't start with an S now.
Diffstat (limited to 'src/file.h')
-rw-r--r-- | src/file.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/file.h b/src/file.h new file mode 100644 index 0000000..bbc620c --- /dev/null +++ b/src/file.h | |||
@@ -0,0 +1,36 @@ | |||
1 | #ifndef FILE_H | ||
2 | #define FILE_H | ||
3 | |||
4 | #include <stdint.h> | ||
5 | |||
6 | #include "stream.h" | ||
7 | |||
8 | namespace Bu | ||
9 | { | ||
10 | class File : public Bu::Stream | ||
11 | { | ||
12 | public: | ||
13 | File( const char *sName, const char *sFlags ); | ||
14 | virtual ~File(); | ||
15 | |||
16 | virtual void close(); | ||
17 | virtual size_t read( void *pBuf, size_t nBytes ); | ||
18 | virtual size_t write( const void *pBuf, size_t nBytes ); | ||
19 | |||
20 | virtual long tell(); | ||
21 | virtual void seek( long offset ); | ||
22 | virtual void setPos( long pos ); | ||
23 | virtual void setPosEnd( long pos ); | ||
24 | virtual bool isEOS(); | ||
25 | |||
26 | virtual bool canRead(); | ||
27 | virtual bool canWrite(); | ||
28 | virtual bool canSeek(); | ||
29 | |||
30 | private: | ||
31 | FILE *fh; | ||
32 | |||
33 | }; | ||
34 | } | ||
35 | |||
36 | #endif | ||