created basic simulator
This commit is contained in:
parent
8c02a9e950
commit
5a06b2bc0b
12 changed files with 541 additions and 0 deletions
19
ass2/OutputDevice.h
Normal file
19
ass2/OutputDevice.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue