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

Method Save

generator/collector_boundary_postcode.cpp:54–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void BoundaryPostcodeCollector::Save()
55{
56 LOG(LINFO, ("Saving postcode boundaries to", GetFilename()));
57 std::sort(m_data.begin(), m_data.end());
58
59 FileWriter writer(GetFilename());
60 for (auto const & p : m_data)
61 {
62 rw::WriteNonEmpty(writer, p.first);
63 rw::WriteVectorOfPOD(writer, p.second);
64 }
65
66 LOG(LINFO, ("Finished saving postcode boundaries"));
67}
68
69void BoundaryPostcodeCollector::MergeInto(BoundaryPostcodeCollector & collector) const
70{

Callers

nothing calls this directly

Calls 4

WriteNonEmptyFunction · 0.85
WriteVectorOfPODFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected