spo/ass2/OutputDevice.h
2025-11-27 08:17:43 +01:00

19 lines
338 B
C++

#ifndef OUTPUTDEVICE_H
#define OUTPUTDEVICE_H
#include <ostream>
#include "Device.h"
class OutputDevice : public Device {
private:
std::ostream& output;
public:
OutputDevice(std::ostream& out);
// override write method to write to output stream
void write(uint8_t value) override;
};
#endif // OUTPUTDEVICE_H