caosdb/file_transmission/file_reader.h

namespace caosdb::transaction

Creation and execution of transactions.

Author

Timm Fitschen

Date

2021-08-05

class FileReader

Public Functions

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

Private Functions

void openFile()

Private Members

std::ifstream stream_
boost::filesystem::path filename_
unsigned long long size_