Popravil fileDevice.cpp tako da dejansko naredi datoteke, če še ne obstajajo

This commit is contained in:
Timon 2025-12-01 13:37:24 +01:00
parent 8222f8dd0a
commit 74cc571eef
270 changed files with 104 additions and 74 deletions

View file

@ -0,0 +1,12 @@
#include "../headers/inputDevice.h"
InputDevice::InputDevice(std::istream& input): in(input){}; //konstruktor
uint8_t InputDevice::read() { //metoda read
int c = in.get();
if (c == EOF) return 0;
else return static_cast<uint8_t>(c);
}
bool InputDevice::test() {return true;}
void InputDevice::write(uint8_t t) {}