16 lines
253 B
C++
16 lines
253 B
C++
#include "output_device.h"
|
|
|
|
OutputDevice::OutputDevice(std::ostream &out)
|
|
: outStream(out)
|
|
{
|
|
}
|
|
|
|
OutputDevice::~OutputDevice()
|
|
{
|
|
}
|
|
|
|
void OutputDevice::write(unsigned char value)
|
|
{
|
|
outStream.put(static_cast<char>(value));
|
|
outStream.flush();
|
|
}
|