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

Method ReadClassificator

libs/indexer/classificator.cpp:345–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343}
344
345void Classificator::ReadClassificator(std::istream & s)
346{
347 ClassifObject::LoadPolicy policy(&m_root);
348 tree::LoadTreeAsText(s, policy);
349
350 m_root.Sort();
351
352 m_coastType = GetTypeByPath({"natural", "coastline"});
353 m_stubType = GetTypeByPath({"mapswithme"});
354}
355
356template <typename Iter>
357uint32_t Classificator::GetTypeByPathImpl(Iter beg, Iter end) const

Callers 1

ReadCommonFunction · 0.80

Calls 2

LoadTreeAsTextFunction · 0.85
SortMethod · 0.45

Tested by

no test coverage detected