#include "FileManager.h" #include void FileManager::update() { auto cmd = pop(); cmd->execute(); delete cmd; } void FileManager::readFile(const std::string &path, const std::function &readCallback) { auto cmd = new FileReadCommand; cmd->path = path; cmd->readCallback = readCallback; push(cmd); } void FileManager::writeFile(const std::string &path, const std::string &content) { auto cmd = new FileWriteCommand; cmd->path = path; cmd->content = content; push(cmd); } void FileReadCommand::execute() { } void FileWriteCommand::execute() { }