| Revision 1868,
1.2 KB
checked in by chris, 5 years ago
(diff) |
|
Fix wrong comments, thanks to Nestor Arocha Rodriguez.
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | // -------------------------------------------------------------------------- |
|---|
| 2 | // |
|---|
| 3 | // File |
|---|
| 4 | // Name: ProtocolUncertainStream.h |
|---|
| 5 | // Purpose: Read part of another stream |
|---|
| 6 | // Created: 2003/12/05 |
|---|
| 7 | // |
|---|
| 8 | // -------------------------------------------------------------------------- |
|---|
| 9 | |
|---|
| 10 | #ifndef PROTOCOLUNCERTAINSTREAM__H |
|---|
| 11 | #define PROTOCOLUNCERTAINSTREAM__H |
|---|
| 12 | |
|---|
| 13 | #include "IOStream.h" |
|---|
| 14 | |
|---|
| 15 | // -------------------------------------------------------------------------- |
|---|
| 16 | // |
|---|
| 17 | // Class |
|---|
| 18 | // Name: ProtocolUncertainStream |
|---|
| 19 | // Purpose: Read part of another stream |
|---|
| 20 | // Created: 2003/12/05 |
|---|
| 21 | // |
|---|
| 22 | // -------------------------------------------------------------------------- |
|---|
| 23 | class ProtocolUncertainStream : public IOStream |
|---|
| 24 | { |
|---|
| 25 | public: |
|---|
| 26 | ProtocolUncertainStream(IOStream &rSource); |
|---|
| 27 | ~ProtocolUncertainStream(); |
|---|
| 28 | private: |
|---|
| 29 | // no copying allowed |
|---|
| 30 | ProtocolUncertainStream(const IOStream &); |
|---|
| 31 | ProtocolUncertainStream(const ProtocolUncertainStream &); |
|---|
| 32 | |
|---|
| 33 | public: |
|---|
| 34 | virtual int Read(void *pBuffer, int NBytes, int Timeout = IOStream::TimeOutInfinite); |
|---|
| 35 | virtual pos_type BytesLeftToRead(); |
|---|
| 36 | virtual void Write(const void *pBuffer, int NBytes); |
|---|
| 37 | virtual bool StreamDataLeft(); |
|---|
| 38 | virtual bool StreamClosed(); |
|---|
| 39 | |
|---|
| 40 | private: |
|---|
| 41 | IOStream &mrSource; |
|---|
| 42 | int mBytesLeftInCurrentBlock; |
|---|
| 43 | bool mFinished; |
|---|
| 44 | }; |
|---|
| 45 | |
|---|
| 46 | #endif // PROTOCOLUNCERTAINSTREAM__H |
|---|
| 47 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.