MCPcopy Create free account
hub / github.com/comaps/comaps / Dump

Method Dump

generator/towns_dumper.cpp:95–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void 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}

Callers 2

GenerateIntermediateDataFunction · 0.45
generator_tool.cppFile · 0.45

Calls 2

ASSERTFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected