19 lines
338 B
C++
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
|