Wrapper class that guarantees that file commit atomicity.
void commit()
Commits the new file contents to disk atomically.
scoped_ostream & ostream()
Returns the write stream associated with the file.
atomic_commit(const atomic_commit &)=delete
atomic_commit & operator=(const atomic_commit &)=delete
atomic_commit(const std::string &filename)
Constructor.
Declarations for File-IO.
std::unique_ptr< std::ostream > scoped_ostream
std::string filename
Filename.