aboutsummaryrefslogtreecommitdiff
path: root/src/file.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-10-27 23:08:24 +0000
committerMike Buland <eichlan@xagasoft.com>2006-10-27 23:08:24 +0000
commitfa6e658f87726b4108e8019805a2b3387d6d8517 (patch)
tree17f1059a2a60f2223473435a51118110993fd578 /src/file.h
parente8f7e6ea10efede39afa1698779ed15889cc2fba (diff)
downloadlibbu++-fa6e658f87726b4108e8019805a2b3387d6d8517.tar.gz
libbu++-fa6e658f87726b4108e8019805a2b3387d6d8517.tar.bz2
libbu++-fa6e658f87726b4108e8019805a2b3387d6d8517.tar.xz
libbu++-fa6e658f87726b4108e8019805a2b3387d6d8517.zip
Added the beginings of the new stream system.
Diffstat (limited to 'src/file.h')
-rw-r--r--src/file.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/file.h b/src/file.h
new file mode 100644
index 0000000..111a8b8
--- /dev/null
+++ b/src/file.h
@@ -0,0 +1,23 @@
1#ifndef FILE_H
2#define FILE_H
3
4#include <stdint.h>
5
6#include "stream.h"
7
8class File : public Stream
9{
10public:
11 File( const char *sName, const char *sFlags );
12 virtual ~File();
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