added reading start
This commit is contained in:
parent
5d2a0f867c
commit
d438feb9ee
7 changed files with 128 additions and 4 deletions
|
|
@ -1,4 +1,6 @@
|
|||
#pragma once
|
||||
#ifndef FILE_READER_H
|
||||
#define FILE_READER_H
|
||||
|
||||
#include "reader.h"
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
|
|
@ -11,9 +13,12 @@ public:
|
|||
int readByte() override;
|
||||
bool readBytes(uint8_t* buf, size_t len) override;
|
||||
std::string readString(size_t len) override;
|
||||
std::string readLine() override;
|
||||
|
||||
bool good() const;
|
||||
|
||||
private:
|
||||
std::ifstream in;
|
||||
};
|
||||
|
||||
#endif // FILE_READER_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue