mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-09 16:02:46 +08:00
Started over.
This commit is contained in:
28
io/CInputStreamFilter.h
Normal file
28
io/CInputStreamFilter.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef CINPUTSTREAMFILTER_H
|
||||
#define CINPUTSTREAMFILTER_H
|
||||
|
||||
#include "IInputStream.h"
|
||||
|
||||
class CInputStreamFilter : public IInputStream {
|
||||
public:
|
||||
CInputStreamFilter(IInputStream*, bool adoptStream = true);
|
||||
~CInputStreamFilter();
|
||||
|
||||
// manipulators
|
||||
|
||||
// accessors
|
||||
|
||||
// IInputStream overrides
|
||||
virtual void close() throw(XIO) = 0;
|
||||
virtual UInt32 read(void*, UInt32 maxCount) throw(XIO) = 0;
|
||||
virtual UInt32 getSize() const throw() = 0;
|
||||
|
||||
protected:
|
||||
IInputStream* getStream() const throw();
|
||||
|
||||
private:
|
||||
IInputStream* m_stream;
|
||||
bool m_adopted;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user