linkahead/file_transmission/file_writer.h

namespace linkahead
namespace transaction

Creation and execution of transactions.

Author

Timm Fitschen

Date

2021-08-05

class FileWriter

Public Functions

FileWriter(std::filesystem::path filename)
~FileWriter() = default
FileWriter(const FileWriter&) = delete
FileWriter &operator=(const FileWriter&) = delete
FileWriter(FileWriter&&) = default
FileWriter &operator=(FileWriter&&) = default
void write(const std::string &buffer)

Private Functions

void openFile()

Private Members

std::ofstream stream_
std::filesystem::path filename_