|
Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
|
Defines the results message file stream writer class. More...
#include <result_file_writer.h>
Public Member Functions | |
| ResultFileWriter ()=delete | |
| ResultFileWriter (const std::filesystem::path &file_name, ExperimentInfo info, bool write_income_csv=true, core::IncomeCategoryLayout income_category_layout={}) | |
| Initialises an instance of the hgps::ResultFileWriter class. | |
| ResultFileWriter (const ResultFileWriter &)=delete | |
| ResultFileWriter & | operator= (const ResultFileWriter &)=delete |
| ResultFileWriter (ResultFileWriter &&other) noexcept | |
| ResultFileWriter & | operator= (ResultFileWriter &&other) noexcept |
| ~ResultFileWriter () | |
| Destroys a hgps::ResultFileWriter instance. | |
| void | write (const hgps::ResultEventMessage &message) override |
| Writes the hgps::ResultEventMessage contents to a stream. | |
Public Member Functions inherited from hgps::ResultWriter | |
| virtual | ~ResultWriter ()=default |
| Destroys a hgps::ResultWriter instance. | |
Defines the results message file stream writer class.
The message content are written to a JSON (JavaScript Object Notation) file, experiment information and global averages values, while time-series data is written to a associated CSV (Comma-separated Values) file with same name but different extension.
|
delete |
| hgps::ResultFileWriter::ResultFileWriter | ( | const std::filesystem::path & | file_name, |
| ExperimentInfo | info, | ||
| bool | write_income_csv = true, |
||
| core::IncomeCategoryLayout | income_category_layout = {} |
||
| ) |
Initialises an instance of the hgps::ResultFileWriter class.
| file_name | The JSON output file full name |
| info | The associated experiment information |
| write_income_csv | When true, write income-based CSV files (one per category). When false, do not. |
| income_category_layout | Final person.income buckets from project_requirements. |
|
delete |
|
noexcept |
| hgps::ResultFileWriter::~ResultFileWriter | ( | ) |
Destroys a hgps::ResultFileWriter instance.
|
delete |
|
noexcept |
|
overridevirtual |
Writes the hgps::ResultEventMessage contents to a stream.
| message | The message instance to process |
Implements hgps::ResultWriter.