2001-10-06 14:13:28 +00:00
|
|
|
#include "CInputStreamFilter.h"
|
|
|
|
|
|
|
|
//
|
|
|
|
// CInputStreamFilter
|
|
|
|
//
|
|
|
|
|
2002-06-10 22:06:45 +00:00
|
|
|
CInputStreamFilter::CInputStreamFilter(
|
|
|
|
IInputStream* stream,
|
|
|
|
bool adopted) :
|
|
|
|
m_stream(stream),
|
|
|
|
m_adopted(adopted)
|
2001-10-06 14:13:28 +00:00
|
|
|
{
|
|
|
|
assert(m_stream != NULL);
|
|
|
|
}
|
|
|
|
|
|
|
|
CInputStreamFilter::~CInputStreamFilter()
|
|
|
|
{
|
|
|
|
if (m_adopted) {
|
|
|
|
delete m_stream;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2002-06-10 22:06:45 +00:00
|
|
|
IInputStream*
|
|
|
|
CInputStreamFilter::getStream() const
|
2001-10-06 14:13:28 +00:00
|
|
|
{
|
|
|
|
return m_stream;
|
|
|
|
}
|