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

Function GetLocalities

generator/utils.cpp:129–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129search::CBV GetLocalities(std::string const & dataPath)
130{
131 FrozenDataSource dataSource;
132 auto const result = dataSource.Register(platform::LocalCountryFile::MakeTemporary(dataPath));
133 CHECK_EQUAL(result.second, MwmSet::RegResult::Success, ("Can't register", dataPath));
134
135 search::MwmContext context(dataSource.GetMwmHandleById(result.first));
136 base::Cancellable const cancellable;
137 return search::CategoriesCache(search::LocalitiesSource{}, cancellable).Get(context);
138}
139
140bool MapcssRule::Matches(std::vector<OsmElement::Tag> const & tags) const
141{

Callers 2

BuildCitiesBoundariesFunction · 0.85

Calls 4

CategoriesCacheClass · 0.85
RegisterMethod · 0.80
GetMwmHandleByIdMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected