Changeset 16:d70b0c40fe4a in xplcommon for src/xplcommon/posix/ReadingBuffer.h
- Timestamp:
- 12/29/12 10:24:28 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/xplcommon/posix/ReadingBuffer.h
r6 r16 32 32 //------------------------------------------------------------------------------ 33 33 34 #include " WaitableBuffer.h"34 #include "StreamBuffer.h" 35 35 36 36 //------------------------------------------------------------------------------ … … 47 47 * amount of data read is 0, that indicates and end-of-file condition. 48 48 */ 49 class ReadingBuffer : public WaitableBuffer49 class ReadingBuffer : public StreamBuffer 50 50 { 51 51 protected: … … 53 53 * Construct the buffer. 54 54 */ 55 ReadingBuffer(size_t capacity, Buffered Waitable* waitable);55 ReadingBuffer(size_t capacity, BufferedStream* stream); 56 56 57 57 public: 58 58 /** 59 * Read into the buffer using the buffered waitableif possible.59 * Read into the buffer using the buffered stream if possible. 60 60 * 61 61 * If the buffer contains data, this function returns immediately … … 67 67 * end-of-file or end-of-connection condition. 68 68 * 69 * If the reading operation would block, the waitableis set up so69 * If the reading operation would block, the stream is set up so 70 70 * that it would read, and failure is returned. 71 71 * … … 76 76 bool read(); 77 77 78 friend class Buffered Waitable;78 friend class BufferedStream; 79 79 }; 80 80 … … 83 83 //------------------------------------------------------------------------------ 84 84 85 inline ReadingBuffer::ReadingBuffer(size_t capacity, 86 BufferedWaitable* waitable) : 87 WaitableBuffer(capacity, waitable) 85 inline ReadingBuffer::ReadingBuffer(size_t capacity, BufferedStream* stream) : 86 StreamBuffer(capacity, stream) 88 87 { 89 88 }
Note:
See TracChangeset
for help on using the changeset viewer.