Moving Buffer definitions out of the header file.
This commit is contained in:
28
Buffer.h
28
Buffer.h
@@ -70,10 +70,7 @@ public:
|
||||
};
|
||||
|
||||
static std::string FileStatusToString(FileStatus status);
|
||||
|
||||
|
||||
static bool StatusOK(FileStatus status)
|
||||
{ return status == FileStatus::FileStatusOK; }
|
||||
static bool StatusOK(FileStatus status);
|
||||
|
||||
|
||||
/// The constructor with no arguments generates a new anonymous
|
||||
@@ -83,19 +80,17 @@ public:
|
||||
/// A single constructor generates a virtual buffer.
|
||||
Buffer(std::string fName);
|
||||
|
||||
/// Instantiate a Buffer pointing to fPath.
|
||||
Buffer(std::string fName, std::string fPath);
|
||||
|
||||
void Close();
|
||||
|
||||
/// Instantiate a buffer from a filesystem path.
|
||||
Buffer(std::filesystem::path fPath);
|
||||
|
||||
std::string Name() const
|
||||
{ return this->name; }
|
||||
/// Instantiate a Buffer pointing to fPath.
|
||||
Buffer(std::string fName, std::string fPath);
|
||||
|
||||
bool IsVirtual()
|
||||
{ return !this->file.has_value(); }
|
||||
|
||||
void Close();
|
||||
|
||||
const std::string Name();
|
||||
bool IsVirtual();
|
||||
|
||||
Buffer::FileStatus Flush(OptString altPath);
|
||||
|
||||
@@ -108,14 +103,13 @@ public:
|
||||
/// \return A FileStatus indicating whether the read was successful.
|
||||
Buffer::FileStatus Refresh();
|
||||
|
||||
void Rename(std::string fName);
|
||||
void ChangePath(std::string newPath);
|
||||
|
||||
Cursor Where()
|
||||
{ return this->cursor; }
|
||||
Cursor Where();
|
||||
|
||||
void MarkDirty();
|
||||
bool IsDirty()
|
||||
{ return this->dirty; }
|
||||
bool IsDirty();
|
||||
|
||||
size_t Size();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user