Start Frame class.

This commit is contained in:
2023-10-14 23:28:43 -07:00
parent 8edcba0f88
commit a00d358b15
8 changed files with 233 additions and 30 deletions

37
Frame.h Normal file
View File

@@ -0,0 +1,37 @@
//
// Created by kyle on 10/14/23.
//
#ifndef KGE_FRAME_H
#define KGE_FRAME_H
#include <filesystem>
#include <string>
#include <vector>
#include <map>
#include "Buffer.h"
class Frame {
public:
Frame();
void Add();
void Add(std::string name);
void Add(std::filesystem::path path);
/// Refresh will attempt to load the active buffer.
Buffer::FileStatus Refresh();
/// Flush will attempt to write the active buffer.
bool Flush();
private:
std::map<std::string, Buffer *> bmap;
std::string activeBuffer;
};
#endif //KGE_FRAME_H