18 lines
No EOL
316 B
C++
18 lines
No EOL
316 B
C++
#ifndef OUTPUT_DEVICE_H
|
|
#define OUTPUT_DEVICE_H
|
|
|
|
#include "device.h"
|
|
#include <ostream>
|
|
|
|
class OutputDevice : public Device {
|
|
public:
|
|
explicit OutputDevice(std::ostream &out);
|
|
~OutputDevice();
|
|
|
|
void write(unsigned char value) override;
|
|
|
|
private:
|
|
std::ostream &outStream;
|
|
};
|
|
|
|
#endif // OUTPUT_DEVICE_H
|