Putting Buffers in main to test things out.

This commit is contained in:
2023-10-12 00:22:30 -07:00
parent 2dcc577f57
commit ba27e132e3
5 changed files with 118 additions and 15 deletions

21
File.cc
View File

@@ -22,9 +22,24 @@
///
#include <filesystem>
#include <utility>
#include "File.h"
File::File(std::string fPath)
: path(fPath), readOnly(false)
{
}
File::File(std::filesystem::path fPath)
: path(std::move(fPath)), readOnly(false)
{
}
const std::string File::Path()
{
return this->path.string();
@@ -37,12 +52,6 @@ void File::SetPath(const std::string &fPath)
}
File::File(std::string fPath)
: path(fPath), readOnly(false)
{
}
OptOutFileStream File::Flush()
{
// Exit early if we shouldn't be writing to the file.