| 93 | } |
| 94 | |
| 95 | void TownsDumper::Dump(std::string const & filePath) |
| 96 | { |
| 97 | FilterTowns(); |
| 98 | |
| 99 | ASSERT(!filePath.empty(), ()); |
| 100 | std::ofstream stream(filePath); |
| 101 | stream.precision(9); |
| 102 | for (auto const & record : m_records) |
| 103 | { |
| 104 | std::string const isCapital = record.capital ? "t" : "f"; |
| 105 | stream << record.point.m_lat << ";" << record.point.m_lon << ";" << record.id << ";" << isCapital << std::endl; |
| 106 | } |
| 107 | } |
no test coverage detected