summaryrefslogtreecommitdiff
path: root/src/stable/stdstream.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/stable/stdstream.h')
-rw-r--r--src/stable/stdstream.h78
1 files changed, 39 insertions, 39 deletions
diff --git a/src/stable/stdstream.h b/src/stable/stdstream.h
index d71d95d..80c0fab 100644
--- a/src/stable/stdstream.h
+++ b/src/stable/stdstream.h
@@ -13,46 +13,46 @@
13 13
14namespace Bu 14namespace Bu
15{ 15{
16 /** 16 /**
17 *@ingroup Streams 17 *@ingroup Streams
18 */ 18 */
19 class StdStream : public Stream 19 class StdStream : public Stream
20 { 20 {
21 public: 21 public:
22 enum OutMode 22 enum OutMode
23 { 23 {
24 StdOut, 24 StdOut,
25 StdError 25 StdError
26 }; 26 };
27 StdStream( OutMode eOut=StdOut ); 27 StdStream( OutMode eOut=StdOut );
28 virtual ~StdStream(); 28 virtual ~StdStream();
29 29
30 virtual void close(); 30 virtual void close();
31 virtual size read( void *pBuf, size nBytes ); 31 virtual size read( void *pBuf, size nBytes );
32 virtual size write( const void *pBuf, size nBytes ); 32 virtual size write( const void *pBuf, size nBytes );
33 using Stream::write; 33 using Stream::write;
34 virtual size tell(); 34 virtual size tell();
35 virtual void seek( size offset ); 35 virtual void seek( size offset );
36 virtual void setPos( size pos ); 36 virtual void setPos( size pos );
37 virtual void setPosEnd( size pos ); 37 virtual void setPosEnd( size pos );
38 virtual bool isEos(); 38 virtual bool isEos();
39 virtual bool isOpen(); 39 virtual bool isOpen();
40 virtual void flush(); 40 virtual void flush();
41 virtual bool canRead(); 41 virtual bool canRead();
42 virtual bool canWrite(); 42 virtual bool canWrite();
43 virtual bool isReadable(); 43 virtual bool isReadable();
44 virtual bool isWritable(); 44 virtual bool isWritable();
45 virtual bool isSeekable(); 45 virtual bool isSeekable();
46 virtual bool isBlocking(); 46 virtual bool isBlocking();
47 virtual void setBlocking( bool bBlocking=true ); 47 virtual void setBlocking( bool bBlocking=true );
48 virtual void setSize( size iSize ); 48 virtual void setSize( size iSize );
49 virtual size getSize() const; 49 virtual size getSize() const;
50 virtual size getBlockSize() const; 50 virtual size getBlockSize() const;
51 virtual Bu::String getLocation() const; 51 virtual Bu::String getLocation() const;
52 52
53 private: 53 private:
54 OutMode eOut; 54 OutMode eOut;
55 }; 55 };
56} 56}
57 57
58#endif 58#endif