barrier/io/CInputStreamFilter.h

29 lines
564 B
C
Raw Normal View History

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
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