mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-24 11:32:43 +03:00
6aba3a6f57
being listed and they'd have to be added to every one. just doesn't seem worth the trouble.
26 lines
416 B
C++
26 lines
416 B
C++
#include "COutputStreamFilter.h"
|
|
#include <assert.h>
|
|
|
|
//
|
|
// COutputStreamFilter
|
|
//
|
|
|
|
COutputStreamFilter::COutputStreamFilter(IOutputStream* stream, bool adopted) :
|
|
m_stream(stream),
|
|
m_adopted(adopted)
|
|
{
|
|
assert(m_stream != NULL);
|
|
}
|
|
|
|
COutputStreamFilter::~COutputStreamFilter()
|
|
{
|
|
if (m_adopted) {
|
|
delete m_stream;
|
|
}
|
|
}
|
|
|
|
IOutputStream* COutputStreamFilter::getStream() const
|
|
{
|
|
return m_stream;
|
|
}
|