46 void open(
u64 id_patch, std::string fileprefix) {
47 const std::filesystem::path path{
48 fileprefix +
"patch_" + shambase::format(
"{:04d}", id_patch) +
".txt"};
49 if (std::filesystem::exists(path)) {
50 std::filesystem::remove(path);
62 void change_table_name(std::string table_name, std::string type) {
63 file <<
"--> " + table_name +
" " +
"type=" + type +
"\n";
72 void write_val(T val);
81 void write_table(std::vector<T> buf,
u32 len);
90 void write_table(sycl::buffer<T> buf,
u32 len);
95 void close() { file.close(); }
113 std::string fileprefix;