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

Method CreateValue

libs/indexer/data_source.cpp:189–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189std::unique_ptr<MwmValue> DataSource::CreateValue(MwmInfo & info) const
190{
191 platform::LocalCountryFile const & localFile = info.GetLocalFile();
192 auto p = std::make_unique<MwmValue>(localFile);
193
194 p->SetTable(dynamic_cast<MwmInfoEx &>(info));
195
196 p->m_metaDeserializer = indexer::MetadataDeserializer::Load(p->m_cont);
197 CHECK(p->m_metaDeserializer, ());
198 return p;
199}
200
201std::pair<MwmSet::MwmId, MwmSet::RegResult> DataSource::RegisterMap(LocalCountryFile const & localFile)
202{

Callers

nothing calls this directly

Calls 3

GetLocalFileMethod · 0.80
SetTableMethod · 0.80
LoadFunction · 0.70

Tested by

no test coverage detected