| 76 | } |
| 77 | |
| 78 | void VisableDataSet::write_to_file() { |
| 79 | for (auto& i : m_file2content) { |
| 80 | auto f_objptr = json::Object::make(); |
| 81 | auto&& f_obj = *f_objptr; |
| 82 | for (auto& c : i.second) { |
| 83 | auto c_objptr = json::Object::make(); |
| 84 | auto&& c_obj = *c_objptr; |
| 85 | for (auto& j : m_filecontent2value[i.first + "/" + c]) { |
| 86 | c_obj[(*j).cast_final_safe<json::Object>()["id"] |
| 87 | ->cast_final_safe<json::String>() |
| 88 | .get_impl()] = j; |
| 89 | } |
| 90 | f_obj[c] = c_objptr; |
| 91 | } |
| 92 | f_objptr->writeto_fpath(output_file(m_logdir, i.first)); |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | std::shared_ptr<json::Value> Chunk::to_json() const { |
| 97 | auto objptr = json::Object::make(); |
nothing calls this directly
no test coverage detected