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

Function LoadCountriesImpl

libs/storage/country_tree.cpp:385–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383}
384
385bool LoadCountriesImpl(string const & jsonBuffer, StoreInterface & store)
386{
387 try
388 {
389 base::Json root(jsonBuffer.c_str());
390 LoadGroupImpl(0 /* depth */, root.get(), kInvalidCountryId, store);
391 return true;
392 }
393 catch (base::Json::Exception const & e)
394 {
395 LOG(LERROR, (e.Msg()));
396 return false;
397 }
398}
399
400int64_t LoadCountriesFromBuffer(string const & jsonBuffer, CountryTree & countries, Affiliations & affiliations,
401 CountryNameSynonyms & countryNameSynonyms, MwmTopCityGeoIds & mwmTopCityGeoIds,

Callers 2

LoadCountriesFromBufferFunction · 0.85

Calls 2

LoadGroupImplFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected