summaryrefslogtreecommitdiff
path: root/src/nullstream.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nullstream.h')
-rw-r--r--src/nullstream.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/nullstream.h b/src/nullstream.h
new file mode 100644
index 0000000..5440af6
--- /dev/null
+++ b/src/nullstream.h
@@ -0,0 +1,37 @@
1#ifndef BU_NULL_STREAM_H
2#define BU_NULL_STREAM_H
3
4#include "bu/stream.h"
5
6namespace Bu
7{
8 class NullStream : public Bu::Stream
9 {
10 public:
11 NullStream();
12 virtual ~NullStream();
13
14 virtual void close();
15 virtual size_t read( void *pBuf, size_t nBytes );
16 virtual Bu::FString readLine();
17 virtual size_t write( const void *pBuf, size_t nBytes );
18 using Bu::Stream::write;
19 virtual long tell();
20 virtual void seek( long offset );
21 virtual void setPos( long pos );
22 virtual void setPosEnd( long pos );
23 virtual bool isEos();
24 virtual bool isOpen();
25 virtual void flush();
26 virtual bool canRead();
27 virtual bool canWrite();
28 virtual bool isReadable();
29 virtual bool isWritable();
30 virtual bool isSeekable();
31 virtual bool isBlocking();
32 virtual void setBlocking( bool bBlocking=true );
33 virtual void setSize( long iSize );
34 };
35};
36
37#endif