barrier/lib/io/COutputStreamFilter.cpp

26 lines
380 B
C++
Raw Normal View History

2001-10-06 18:13:28 +04:00
#include "COutputStreamFilter.h"
//
// COutputStreamFilter
//
2002-06-17 17:31:21 +04:00
COutputStreamFilter::COutputStreamFilter(IOutputStream* stream, bool adopted) :
m_stream(stream),
m_adopted(adopted)
2001-10-06 18:13:28 +04:00
{
assert(m_stream != NULL);
}
COutputStreamFilter::~COutputStreamFilter()
{
if (m_adopted) {
delete m_stream;
}
}
IOutputStream*
COutputStreamFilter::getStream() const
2001-10-06 18:13:28 +04:00
{
return m_stream;
}