linkahead/file_transmission/file_reader.h

namespace linkahead
namespace transaction

Creation and execution of transactions.

Author

Timm Fitschen

Date

2021-08-05

class FileReader

Public Functions

FileReader(std::filesystem::path filename)
~FileReader() = default
FileReader(const FileReader&) = delete
FileReader &operator=(const FileReader&) = delete
FileReader(FileReader&&) = default
FileReader &operator=(FileReader&&) = default
inline uint64_t fileSize() const
std::size_t read(std::string &buffer)

Private Functions

void openFile()

Private Members

std::ifstream stream_
std::filesystem::path filename_
uint64_t size_