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

Function CreatePointStorageWriter

generator/intermediate_data.cpp:467–477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

465}
466
467std::unique_ptr<PointStorageWriterInterface> CreatePointStorageWriter(feature::GenerateInfo::NodeStorageType type,
468 string const & name)
469{
470 switch (type)
471 {
472 case feature::GenerateInfo::NodeStorageType::File: return std::make_unique<RawFilePointStorageWriter>(name);
473 case feature::GenerateInfo::NodeStorageType::Index: return std::make_unique<MapFilePointStorageWriter>(name);
474 case feature::GenerateInfo::NodeStorageType::Memory: return std::make_unique<RawMemPointStorageWriter>(name);
475 }
476 UNREACHABLE();
477}
478
479IntermediateData::IntermediateData(IntermediateDataObjectsCache & objectsCache, feature::GenerateInfo const & info)
480 : m_objectsCache(objectsCache)

Callers 1

GenerateIntermediateDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected