Changeset 16:d70b0c40fe4a in xplcommon for src/xplcommon/posix/WritingBuffer.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/WritingBuffer.h
r6 r16 32 32 //------------------------------------------------------------------------------ 33 33 34 #include " WaitableBuffer.h"34 #include "StreamBuffer.h" 35 35 36 36 //------------------------------------------------------------------------------ … … 47 47 * has been written. In that case the buffer is automatically emptied. 48 48 */ 49 class WritingBuffer : public WaitableBuffer49 class WritingBuffer : public StreamBuffer 50 50 { 51 51 private: … … 59 59 * Construct the buffer. 60 60 */ 61 WritingBuffer(size_t capacity, Buffered Waitable* waitable);61 WritingBuffer(size_t capacity, BufferedStream* stream); 62 62 63 63 public: … … 69 69 /** 70 70 * Write the contents of the buffer using the associated buffered 71 * waitable.71 * stream. 72 72 * 73 73 * If the buffer is empty, the function returns indicating … … 79 79 * If not everything can be written and the write operation 80 80 * indicates that it would block, this function returns failure 81 * after the waitablehas been set up to handle the corresponding81 * after the stream has been set up to handle the corresponding 82 82 * poll events. 83 83 * … … 88 88 bool write(); 89 89 90 friend class Buffered Waitable;90 friend class BufferedStream; 91 91 }; 92 92 … … 95 95 //------------------------------------------------------------------------------ 96 96 97 inline WritingBuffer::WritingBuffer(size_t capacity, 98 BufferedWaitable* waitable): 99 WaitableBuffer(capacity, waitable), 97 inline WritingBuffer::WritingBuffer(size_t capacity, BufferedStream* stream): 98 StreamBuffer(capacity, stream), 100 99 offset(0) 101 100 {
Note:
See TracChangeset
for help on using the changeset viewer.