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

Function SaveKmlFileSafe

libs/map/bookmark_helpers.cpp:603–608  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

601}
602
603bool SaveKmlFileSafe(kml::FileData & kmlData, std::string const & file, KmlFileType fileType)
604{
605 LOG(LINFO, ("Save kml file of type", fileType, "to", file));
606 return base::WriteToTempAndRenameToFile(
607 file, [&kmlData, fileType](std::string const & fileName) { return SaveKmlFile(kmlData, fileName, fileType); });
608}
609
610bool SaveKmlFileByExt(kml::FileData & kmlData, std::string const & file)
611{

Callers 5

ExportSingleFileKmlFunction · 0.85
ExportSingleFileGpxFunction · 0.85
ExportMultipleFilesFunction · 0.85
LoadBookmarkRoutineMethod · 0.85
SaveKmlFileByExtFunction · 0.85

Calls 2

SaveKmlFileFunction · 0.85

Tested by

no test coverage detected