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

Function ReadAllDatRawFormat

generator/feature_builder.hpp:305–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303
304template <class SerializationPolicy = serialization_policy::MaxAccuracy>
305std::vector<FeatureBuilder> ReadAllDatRawFormat(std::string const & fileName)
306{
307 std::vector<FeatureBuilder> fbs;
308 // Happens in tests when World or Country file is empty (no valid Features to emit).
309 if (Platform::IsFileExistsByFullPath(fileName))
310 {
311 ForEachFeatureRawFormat<SerializationPolicy>(
312 fileName, [&](FeatureBuilder && fb, uint64_t) { fbs.emplace_back(std::move(fb)); });
313 }
314 return fbs;
315}
316
317template <class SerializationPolicy = serialization_policy::MaxAccuracy, class Writer = FileWriter>
318class FeatureBuilderWriter

Callers 3

generator_tool.cppFile · 0.85
BuildCoastsMethod · 0.85
GetCountersForCountryMethod · 0.85

Calls 1

emplace_backMethod · 0.45

Tested by 2

BuildCoastsMethod · 0.68
GetCountersForCountryMethod · 0.68