diff options
Diffstat (limited to 'src/unstable/fifo.h')
-rw-r--r-- | src/unstable/fifo.h | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/src/unstable/fifo.h b/src/unstable/fifo.h index ea32f04..3d9192a 100644 --- a/src/unstable/fifo.h +++ b/src/unstable/fifo.h | |||
@@ -18,55 +18,55 @@ | |||
18 | 18 | ||
19 | namespace Bu | 19 | namespace Bu |
20 | { | 20 | { |
21 | subExceptionDecl( FifoException ); | 21 | subExceptionDecl( FifoException ); |
22 | 22 | ||
23 | /** | 23 | /** |
24 | * A fifo stream. | 24 | * A fifo stream. |
25 | *@ingroup Streams | 25 | *@ingroup Streams |
26 | */ | 26 | */ |
27 | class Fifo : public Bu::Stream | 27 | class Fifo : public Bu::Stream |
28 | { | 28 | { |
29 | public: | 29 | public: |
30 | Fifo( const Bu::String &sName, int iFlags, mode_t mAcc=-1 ); | 30 | Fifo( const Bu::String &sName, int iFlags, mode_t mAcc=-1 ); |
31 | virtual ~Fifo(); | 31 | virtual ~Fifo(); |
32 | 32 | ||
33 | virtual void close(); | 33 | virtual void close(); |
34 | virtual Bu::size read( void *pBuf, Bu::size nBytes ); | 34 | virtual Bu::size read( void *pBuf, Bu::size nBytes ); |
35 | virtual Bu::size write( const void *pBuf, Bu::size nBytes ); | 35 | virtual Bu::size write( const void *pBuf, Bu::size nBytes ); |
36 | using Stream::write; | 36 | using Stream::write; |
37 | 37 | ||
38 | virtual Bu::size tell(); | 38 | virtual Bu::size tell(); |
39 | virtual void seek( Bu::size offset ); | 39 | virtual void seek( Bu::size offset ); |
40 | virtual void setPos( Bu::size pos ); | 40 | virtual void setPos( Bu::size pos ); |
41 | virtual void setPosEnd( Bu::size pos ); | 41 | virtual void setPosEnd( Bu::size pos ); |
42 | virtual bool isEos(); | 42 | virtual bool isEos(); |
43 | virtual bool isOpen(); | 43 | virtual bool isOpen(); |
44 | 44 | ||
45 | virtual void flush(); | 45 | virtual void flush(); |
46 | 46 | ||
47 | virtual bool canRead(); | 47 | virtual bool canRead(); |
48 | virtual bool canWrite(); | 48 | virtual bool canWrite(); |
49 | 49 | ||
50 | virtual bool isReadable(); | 50 | virtual bool isReadable(); |
51 | virtual bool isWritable(); | 51 | virtual bool isWritable(); |
52 | virtual bool isSeekable(); | 52 | virtual bool isSeekable(); |
53 | 53 | ||
54 | virtual bool isBlocking(); | 54 | virtual bool isBlocking(); |
55 | virtual void setBlocking( bool bBlocking=true ); | 55 | virtual void setBlocking( bool bBlocking=true ); |
56 | 56 | ||
57 | enum { | 57 | enum { |
58 | Read = 0x01, | 58 | Read = 0x01, |
59 | Write = 0x02, | 59 | Write = 0x02, |
60 | Create = 0x04, | 60 | Create = 0x04, |
61 | Delete = 0x08, | 61 | Delete = 0x08, |
62 | NonBlock = 0x10 | 62 | NonBlock = 0x10 |
63 | }; | 63 | }; |
64 | 64 | ||
65 | private: | 65 | private: |
66 | int iFlags; | 66 | int iFlags; |
67 | int iIn; | 67 | int iIn; |
68 | int iOut; | 68 | int iOut; |
69 | }; | 69 | }; |
70 | } | 70 | } |
71 | 71 | ||
72 | #endif | 72 | #endif |