saved snapshot for naloga2

This commit is contained in:
zanostro 2025-12-07 11:33:03 +01:00
parent e764bf53e7
commit 9e7a9101b0
35 changed files with 4928 additions and 0 deletions

View file

@ -0,0 +1,22 @@
#ifndef STRING_READER_H
#define STRING_READER_H
#include "reader.h"
#include <string>
#include <sstream>
class StringReader : public Reader {
public:
explicit StringReader(const std::string &s);
~StringReader() override;
int readByte() override;
bool readBytes(uint8_t* buf, size_t len) override;
std::string readString(size_t len) override;
std::string readLine() override;
private:
std::istringstream in;
};
#endif // STRING_READER_H