#ifndef BF_XLNT_H #define BF_XLNT_H #include #include #include "bf.config.h" #include "bf.request.h" #include "bf.util.h" class BF_Xlnt { public: BF_Xlnt() = default; public: void Reset(); void Set(BF_Interface* request, std::shared_ptr bfConfig); bool parseXlsx(const std::string& file, std::vector& tasks, const std::string& sheetName); private: bool Fanyi(int i, int j, xlnt::worksheet& ws, const XlsxTask& task, std::string& out); bool GetCell(int i, int j, xlnt::worksheet& ws, xlnt::cell_reference& out); private: BF_Interface* request_{}; std::shared_ptr bfConfig_{}; std::unordered_map fanyiHistory_{}; }; #endif