#include #include "file_io/FileFactory.hpp" #include "file_io/File.hpp" template class FileHandler{ private: std::filesystem::path fpath; FileFactory* fileFactory; File* f; public: FileHandler(std::filesystem::path fpath){ this->fpath = fpath; this->fileFactory= FileFactory::get_factory(fpath); this->f= fileFactory->load_file(); delete fileFactory; } Frame* get_frame(int index){ return f->get_frame(index); } ~FileHandler(){ delete f; } };