99 |
fs::path xml_out_file = unique_filepath(fo_dir / real_filename, ".xml"); |
fs::path xml_out_file = unique_filepath(fo_dir / real_filename, ".xml"); |
100 |
|
|
101 |
fs::ofstream ofs(xml_out_file, std::ios_base::out | std::ios_base::trunc); |
fs::ofstream ofs(xml_out_file, std::ios_base::out | std::ios_base::trunc); |
102 |
ledger.write(ofs); |
// Scale a copy of the 'ledger' argument. The original must not be |
103 |
|
// modified because scaling is not reentrant. |
104 |
|
Ledger scaled_ledger(ledger); |
105 |
|
scaled_ledger.AutoScale(); |
106 |
|
scaled_ledger.write(ofs); |
107 |
ofs.close(); |
ofs.close(); |
108 |
|
|
109 |
fs::path xsl_file = xsl_filepath(ledger); |
fs::path xsl_file = xsl_filepath(ledger); |