kge/Frame.h

38 lines
580 B
C
Raw Normal View History

2023-10-15 06:28:43 +00:00
//
// 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.
2023-10-15 06:47:37 +00:00
Buffer::FileStatus Flush();
2023-10-15 06:28:43 +00:00
private:
2023-10-15 06:47:37 +00:00
std::map<std::string, Buffer *> bmap;
std::string activeBuffer;
2023-10-15 06:28:43 +00:00
};
#endif //KGE_FRAME_H