30 bool write_income_csv =
true,
43 std::ofstream stream_;
44 std::ofstream csvstream_;
45 std::map<core::Income, std::ofstream> income_csvstreams_;
46 std::map<core::Income, bool> income_first_row_;
49 std::map<core::Income, std::unique_ptr<std::mutex>> income_mutexes_;
51 bool write_income_csv_{
true};
53 std::filesystem::path base_filename_;
54 std::atomic<bool> first_row_{
true};
55 std::mutex lock_mutex_;
57 void write_json_begin(
const std::filesystem::path &output);
58 void write_json_end();
71 std::ofstream &income_csv);
85 std::ofstream &income_csv);
91 std::string generate_income_filename(
const std::string &base_filename,
97 std::string income_category_to_string(
core::Income income)
const;
102 std::vector<core::Income>
105 void merge_configured_income_strata(std::vector<core::Income> &categories)
const;
void write(const hgps::ResultEventMessage &message) override
Writes the hgps::ResultEventMessage contents to a stream.
Definition result_file_writer.cpp:102