2001-10-06 14:13:28 +00:00
|
|
|
#ifndef CINPUTSTREAMFILTER_H
|
|
|
|
#define CINPUTSTREAMFILTER_H
|
|
|
|
|
|
|
|
#include "IInputStream.h"
|
|
|
|
|
|
|
|
class CInputStreamFilter : public IInputStream {
|
|
|
|
public:
|
|
|
|
CInputStreamFilter(IInputStream*, bool adoptStream = true);
|
|
|
|
~CInputStreamFilter();
|
|
|
|
|
|
|
|
// manipulators
|
|
|
|
|
|
|
|
// accessors
|
|
|
|
|
|
|
|
// IInputStream overrides
|
2001-10-14 16:58:01 +00:00
|
|
|
virtual void close() = 0;
|
|
|
|
virtual UInt32 read(void*, UInt32 maxCount) = 0;
|
|
|
|
virtual UInt32 getSize() const = 0;
|
2001-10-06 14:13:28 +00:00
|
|
|
|
|
|
|
protected:
|
2001-10-14 16:58:01 +00:00
|
|
|
IInputStream* getStream() const;
|
2001-10-06 14:13:28 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
IInputStream* m_stream;
|
|
|
|
bool m_adopted;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|