diff options
Diffstat (limited to 'oop2eindopdr/ZipExport.h')
-rw-r--r-- | oop2eindopdr/ZipExport.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/oop2eindopdr/ZipExport.h b/oop2eindopdr/ZipExport.h index 0800b41..f2dd28a 100644 --- a/oop2eindopdr/ZipExport.h +++ b/oop2eindopdr/ZipExport.h @@ -4,6 +4,7 @@ #include <vector> class Pokedex; +class PokemonCard; /** @brief handle csv parsing and zip export */ class ZipExport { @@ -13,20 +14,18 @@ private: std::string csv_path; /** @brief input csv file path */ std::string zip_path; /** @brief output zip file path */ - std::vector<std::string> id_list; /** @brief list of id's in csv file */ public: - /** @brief create ZipExport */ ZipExport(); - /** @brief create ZipExport class and immediately start export */ - ZipExport(Pokedex* pokedex, std::string input_csv, std::string output_zip); virtual ~ZipExport(); /** @brief set pokedex reference */ virtual void set_pokedex(Pokedex* pokedex); /** @brief set csv_path and parse csv file */ - virtual void import_csv(std::string filename); + virtual std::vector<std::string> import_csv(std::string filename); /** @brief generate output export zip file */ - virtual void export_zip(std::string filename); + virtual void export_zip(std::string filename, std::vector<PokemonCard*> cards); + + std::vector<std::string> id_list; /** @brief list of id's in csv file */ }; |