48 ~StatOutStream()
override =
default;
50 StatOutStream() : array(glz::generic_u64::array_t{}) {}
52 std::filesystem::path output_path()
const {
return output_path_; }
53 void output_path(std::filesystem::path path) {
54 output_path_ = std::move(path);
57 StatOutStream& operator<<(
const Statistic& s) {
58 array.get<glz::generic_u64::array_t>().emplace_back(
59 s.dump_representation());
63 void reset() { array = glz::generic_u64::array_t{}; }
68 auto _ = glz::write_file_yaml(array, output_path().c_str());
72 std::filesystem::path output_path_;
73 glz::generic_u64 array;