Putting Buffers in main to test things out.
This commit is contained in:
21
File.cc
21
File.cc
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user